-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Do not set error status when recording an error with RecordError #1661
Labels
area:trace
Part of OpenTelemetry tracing
good first issue
Good for newcomers
pkg:SDK
Related to an SDK package
Milestone
Comments
MrAlias
added
good first issue
Good for newcomers
pkg:SDK
Related to an SDK package
area:trace
Part of OpenTelemetry tracing
release:required-for-ga
labels
Mar 5, 2021
This was referenced Mar 5, 2021
@MrAlias Picking this up |
mrveera
added a commit
to mrveera/opentelemetry-go
that referenced
this issue
Mar 5, 2021
…err as span event
mrveera
added a commit
to mrveera/opentelemetry-go
that referenced
this issue
Mar 5, 2021
…err as span event
Should we introduce a functional option for |
@seh Sounds like good idea that users don't need to set it separately when needed. they can invoke this function with respective argument |
MrAlias
added a commit
that referenced
this issue
Mar 8, 2021
* Fix #1661 Removed setting error status while recording err as span event * Update CHANGELOG.md Co-authored-by: Anthony Mirabella <[email protected]> * Update RecordError method doc Co-authored-by: Tyler Yahn <[email protected]> * Fix grammatical errors in Changelog Co-authored-by: Tyler Yahn <[email protected]> * Update RecordError method doc Co-authored-by: Anthony Mirabella <[email protected]> Co-authored-by: Tyler Yahn <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:trace
Part of OpenTelemetry tracing
good first issue
Good for newcomers
pkg:SDK
Related to an SDK package
From the specification:
However we set the span status when recording an error:
opentelemetry-go/sdk/trace/span.go
Line 265 in 37688ef
It was pointed out in this thread that there could be a situation where an error is encountered but handled so when it is recorded the user may not want the span to be considered errored.
We should remove this line to ensure we are in compliance with the specification. Additionally, we need to be clear of this behavior in the method documentation (that it will not set the span status).
The text was updated successfully, but these errors were encountered: