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

Attach stack trace when events have captured an exception without a stack trace #2266

Merged
merged 5 commits into from
Mar 29, 2023

Conversation

mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Mar 29, 2023

When AttachStackTrace is true (the default behavior), we now ensure that a stack trace exists on all events.

Previously, we'd only have a stack trace on events with a _thrown_exception, or events that had no exception. This expands the feature to include a stack trace when an exception is captured without being thrown.

An stack trace like this will be sent to Sentry separately from the exception, but the Sentry issue details UI will still show them together. If source context is available, the highlighted call site is likely to be the location where the exception was captured. For example:

image

Resolves #2262

@github-actions
Copy link
Contributor

github-actions bot commented Mar 29, 2023

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against dd3a282

@mattjohnsonpint mattjohnsonpint merged commit a416546 into main Mar 29, 2023
@mattjohnsonpint mattjohnsonpint deleted the feat/attach-stacktrace-always branch March 29, 2023 20:10
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.

Always attach a stack trace, when AttachStackTrace is true
2 participants