-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
Default to internal_error rather than unknown_error #2473
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense, thanks. Could you also add a simple spec that covers this change to span_processor_spec.rb?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2473 +/- ##
=======================================
Coverage 98.17% 98.17%
=======================================
Files 128 128
Lines 4825 4829 +4
=======================================
+ Hits 4737 4741 +4
Misses 88 88
|
@solnic Done. The new spec cover all type of errors handled by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you! Please update the top-level CHANGELOG.md too, and I'll be able to merge it in 🙂
When using
sentry-opentelemetry
to trace code that isn't related to an HTTP call, theSpanProcessor
will set the status of aTransaction
to be"unknown_error"
, which is benign, but within Sentry UI this status is not interpreted as an error at all.The result is that all the impacted transactions appears to have 0% failure rate, etc. Changing it to
"internal_error"
prevents this, and also is in line with other sentry SDKs behaviour.Sidebar: The
SpanEvent
metadata around exceptions seems to be dropped in the conversion process toTransaction
, which is too bad.