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

Set correct span status for Send and SendAsync #2397

Conversation

easyfy-fredrik
Copy link
Contributor

OpenTelemetry instrumentation

Span status (Error/OK) gets flipped for Send() and SendAsync() while being correct for Publish() and PublishAsync().
EndSpan() has a success parameter which sets the span status to Error if true which is a bit confusing.

This change sets Error status directly on exception and assumes success if no other status is set, this should fix the flipped status and remove the need for the success parameter.

@CLAassistant
Copy link

CLAassistant commented Dec 3, 2022

CLA assistant check
All committers have signed the CLA.

@iancooper
Copy link
Member

Thanks @easyfy-fredrik I am going to pull in @preardon to review, as he wrote our original telemetry support

Copy link
Member

@preardon preardon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@iancooper
Copy link
Member

@easyfy-fredrik We have a couple of other fixes in the pipe, if they are there in the next 24 hours I will fold into a release, otherwise I will get this out then

@iancooper iancooper merged commit c5aee1c into BrighterCommand:master Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants