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

Add formal Azure SDK tracing conventions #3260

Merged
merged 5 commits into from
Aug 17, 2021
Merged

Add formal Azure SDK tracing conventions #3260

merged 5 commits into from
Aug 17, 2021

Conversation

lmolkova
Copy link
Member

Tracing conventions are essential for tracing vendors to visualize traces and build metrics.
Azure SDK currently uses a mixture of OpenTelemetry conventions and custom ones. Some of the custom conventions such as logical API calls or additional attributes comply with OpenTelemtery while messaging and database convention diverged from OpenTelemtery.

While we want to adopt the OpenTelemetry convention, they are in experimental status and don't always support our scenarios. We're going to give them some time (and help) to stabilize, but in the meantime, we have to document current schemas as a contract between Azure SDKs and Azure Monitor (and may be other exporters that would want to adopt them). This is a prerequisite for Azure Monitor exporter support for Azure SDKs.

Going forward all conventions should be captured here to serve as a source of truth across languages.

@lmolkova lmolkova requested a review from salameer as a code owner August 17, 2021 03:17
@lmolkova lmolkova requested a review from pakrym August 17, 2021 03:18
This conventions follows [OpenTelemetry HTTP](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md)
but omits all optional attributes, providing only `http.url` to describe destination. It adds request-id attributes supported by Azure services.
attributes:
- id: method
Copy link
Contributor

Choose a reason for hiding this comment

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

http.method?

Copy link
Contributor

@pakrym pakrym left a comment

Choose a reason for hiding this comment

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

LGTM

@lmolkova lmolkova enabled auto-merge (squash) August 17, 2021 18:29
@lmolkova lmolkova merged commit cc5e72d into Azure:main Aug 17, 2021
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.

2 participants