Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect snapshot names from function names #213

Merged
merged 1 commit into from
Jan 25, 2022
Merged

Conversation

mitsuhiko
Copy link
Owner

We used to detect the snapshot names form the current thread. This has
been very unrealiable in a lot of cases. This changes the behavior so
that the function name is used instead by using std::any::type_name.

This does change behavior slightly but most users should not notice this
change except if they relied on helper functions. In that case using a
macro is a better solution most likely.

Refs #127 and #105

We used to detect the snapshot names form the current thread.  This has
been very unrealiable in a lot of cases.  This changes the behavior so
that the function name is used instead by using `std::any::type_name`.

This does change behavior slightly but most users should not notice this
change except if they relied on helper functions.  In that case using a
macro is a better solution most likely.

Refs #127 and #105
@mitsuhiko mitsuhiko merged commit 758eb6a into master Jan 25, 2022
@mitsuhiko mitsuhiko deleted the feature/new-test-name branch January 25, 2022 22:24
mitsuhiko added a commit to getsentry/symbolicator that referenced this pull request Jan 25, 2022
Future insta versions no longer use thread but function name.

Refs mitsuhiko/insta#213
mitsuhiko added a commit to getsentry/symbolicator that referenced this pull request Jan 26, 2022
Future insta versions no longer use thread but function name.

Refs mitsuhiko/insta#213
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant