-
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
Introduce a functional option for span.RecordError
to request that sets the status if the supplied error
is not nil
#1677
Comments
I'd like to take this one. I'm going to add an IsRecordError filed to SpanConfig and new event option WithRecordError. Glad to hear from you, if anything was misunderstood. |
I'm not sure this is what I or others were thinking originally. Instead, add an EventOption that was named
This would be passed to the call of |
…etry#1677) Signed-off-by: lastchiliarch <[email protected]>
…etry#1677) Signed-off-by: lastchiliarch <[email protected]>
…etry#1677) Signed-off-by: lastchiliarch <[email protected]>
…etry#1677) Signed-off-by: lastchiliarch <[email protected]>
…etry#1677) Signed-off-by: lastchiliarch <[email protected]>
…etry#1677) Signed-off-by: lastchiliarch <[email protected]>
…rrorOption (open-telemetry#1677) * Change signature of the Span `RecordError, replace EventOption by ErrorOption * Add WithEventOpts, WithErrorStatus * Set status when WithErrorStatus is passed to RecordError Signed-off-by: lastchiliarch <[email protected]>
…rrorOption (open-telemetry#1677) * Change signature of the Span `RecordError, replace EventOption by ErrorOption * Add WithEventOpts, WithErrorStatus * Set status when WithErrorStatus is passed to RecordError Signed-off-by: lastchiliarch <[email protected]>
It looks like this got stuck after #1677 fell behind a bunch of refactors. If @lastchiliarch isn't able to take it forward I'd be interested in picking this up in a new PR. |
Fixes open-telemetry#1677 by adding a functional option that sets the Status of a span when calling RecordError.
Fixes open-telemetry#1677 by adding a functional option that sets the Status of a span when calling RecordError.
@treuherz this would be nice to see in. |
Apologies, I wasn’t able to find a satisfactory backwards-compatible way of making this happen. Maybe inspiration will strike someone else! |
Hey @MrAlias, tried to solve an issue. |
Originally posted by @seh in #1661 (comment)
The text was updated successfully, but these errors were encountered: