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

[Tracing] Add error.type attribute to spans #34619

Merged
merged 2 commits into from
Apr 4, 2024
Merged

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Mar 5, 2024

OpenTelemetry defines an error.type attribute, and the guidance is to set it to the string http status code if a non-success status code is returned or just the name of the exception that was raised.

Closes: #32804
Part-of: #32803

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@pvaneck pvaneck force-pushed the tracing-retry branch 3 times, most recently from 863c4e7 to d3ecb51 Compare March 6, 2024 22:28
@pvaneck pvaneck marked this pull request as ready for review March 7, 2024 19:07
Copy link
Member

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

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

Left a small comment, looks great otherwise!

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck
Copy link
Member Author

pvaneck commented Apr 4, 2024

/check-enforcer override

@pvaneck pvaneck merged commit acfb396 into Azure:main Apr 4, 2024
217 of 224 checks passed
@pvaneck pvaneck deleted the tracing-retry branch April 4, 2024 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[azure-core-tracing-opentelemetry] Adopt OpenTelemetry error.type attribute for logical calls
4 participants