-
Notifications
You must be signed in to change notification settings - Fork 836
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: Add status exception on Span.recordException #1490
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1490 +/- ##
=======================================
Coverage 93.82% 93.82%
=======================================
Files 154 154
Lines 4762 4763 +1
Branches 951 951
=======================================
+ Hits 4468 4469 +1
Misses 294 294
|
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.
please fix the lint errors (npm run lint:fix), other than that lgtm
I just looked back at the spec and it doesn't say anything about setting status when recordException is called. |
@dyladan you right and i read this one : there is nothing about status. but with a status code (13 for INTERNAL but maybe not the good one...) So i think status code is important for an exception : that's why i do this PR. @obecny no prob, i try to fix it. |
The |
Perhaps not a removal but a change? open-telemetry/opentelemetry-specification#706 (comment) merging it now, maybe, it's not a good idea... |
An exception does not always mean the request failed. It is entirely possible to have a recorded exception which is caught and handled successfully. With span.status being removed or changed soon, I believe we should close this PR. |
Ok, i close it ;) |
Which problem is this PR solving?
Short description of the changes