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 support for stable HTTP semconv #37899

Merged
merged 5 commits into from
Jan 5, 2024
Merged

Conversation

trask
Copy link
Member

@trask trask commented Dec 2, 2023

Adds support for stable HTTP semconv, while maintaining backcompat support for the pre-stable HTTP semconv.

@github-actions github-actions bot added the OpenTelemetry OpenTelemetry instrumentation label Dec 2, 2023
@trask trask force-pushed the stable-http-semconv branch 2 times, most recently from 00212a8 to c37545a Compare December 2, 2023 00:42
@trask trask force-pushed the stable-http-semconv branch from c37545a to 04f3a99 Compare December 2, 2023 00:54
@trask trask marked this pull request as ready for review December 2, 2023 00:55
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@@ -22,18 +22,227 @@
// this is a copy of io.opentelemetry.semconv.trace.attributes.SemanticAttributes
// because the module that contains that class is not stable,
// so don't want to take a dependency on it
Copy link
Member

Choose a reason for hiding this comment

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

I understand it's not being stable not take it as a dependency.
If there is no new code added, i.e. it's identical, can we just use it as dependency?
This would create a dependency on us to remember to update it regularly. It's likely to be outdated.

What kind of potential issues are you concerned about?

Copy link
Member Author

Choose a reason for hiding this comment

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

What kind of potential issues are you concerned about?

diamond dependency problem, this is why azure sdk architects have been pushing back on other langs including alpha libraries in their distros

}

@Nullable
private static String getHttpUrlFromServerSpanStableSemconv(Attributes attributes) {
Copy link
Member

Choose a reason for hiding this comment

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

can you please add the link to the otel spec for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think there's an otel spec for how to build http url from its components, this might be the most relevent spec: https://www.rfc-editor.org/rfc/rfc2616

@trask trask merged commit 5a079d8 into Azure:main Jan 5, 2024
17 checks passed
@trask trask deleted the stable-http-semconv branch January 5, 2024 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenTelemetry OpenTelemetry instrumentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants