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

Add abnormal_mechanism to sessions to track ANR rate #774

Closed
AbhiPrasad opened this issue Oct 12, 2023 · 3 comments · Fixed by #783
Closed

Add abnormal_mechanism to sessions to track ANR rate #774

AbhiPrasad opened this issue Oct 12, 2023 · 3 comments · Fixed by #783

Comments

@AbhiPrasad
Copy link
Member

ref #729

As per getsentry/develop#931 we can add the abnormal_mechanism mechanism field to sessions to indicate to Sentry if a session was errored because of ANR. This allows the product to calculate ANR rate.

ref getsentry/sentry-java#2475

Abnormal mechanism can be either one of anr_foreground or `anr_background as per https://github.com/getsentry/sentry/blob/bf6651cb323c6c45eab2b31d4078b21756dbdff6/src/sentry/sentry_metrics/indexer/strings.py#L139-L140

@timfish
Copy link
Collaborator

timfish commented Oct 12, 2023

I guess we need to add this to nodejs first

@timfish
Copy link
Collaborator

timfish commented Oct 18, 2023

After the next Sentry JavaScript release I will update them and add some tests.

@AbhiPrasad
Copy link
Member Author

abnormal_mechanism was added with https://github.com/getsentry/sentry-javascript/releases/tag/7.75.0

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 a pull request may close this issue.

2 participants