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

Fix reported error count on a crashed session update #1972

Merged
merged 5 commits into from
Oct 7, 2022

Conversation

mattjohnsonpint
Copy link
Contributor

From https://develop.sentry.dev/sdk/sessions/#session-update-payload

image

"It's important that this counter is also incremented when a session goes to crashed. (eg: the crash itself is always an error as well)."

This PR does that.

"Ingest should force errors to 1 if not set or 0."

If that's already happening on the back-end, I believe this doesn't really fix anything in particular, but should still be done for correctness.

@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) October 7, 2022 00:32
@mattjohnsonpint mattjohnsonpint merged commit 9a9e108 into main Oct 7, 2022
@mattjohnsonpint mattjohnsonpint deleted the set-errorscount-on-crashed-session branch October 7, 2022 01:08
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.

2 participants