-
Notifications
You must be signed in to change notification settings - Fork 207
feat: HTTPX semantic convention stability opt in #1589
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
feat: HTTPX semantic convention stability opt in #1589
Conversation
instrumentation/httpx/lib/opentelemetry/instrumentation/httpx/dup/plugin.rb
Outdated
Show resolved
Hide resolved
instrumentation/httpx/lib/opentelemetry/instrumentation/httpx/stable/plugin.rb
Outdated
Show resolved
Hide resolved
attributes[OpenTelemetry::SemanticConventions::Trace::PEER_SERVICE] = config[:peer_service] if config[:peer_service] | ||
attributes.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes) | ||
|
||
span = tracer.start_span(verb.to_s, attributes: attributes, kind: :client, start_timestamp: start_time) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you remove the .to_s
in dup
, it should be removed here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed in f9cbcc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
This PR is intended to assist in the transition from the old to new HTTP semantic conventions. Per the HTTP semantic convention stability migration spec, users should be able to set the environment variable
OTEL_SEMCONV_STABILITY_OPT_IN
to:http
to emit stable conventions onlyhttp/dup
to emit both old and the stable conventionsHTTP GET
is now justGET
- specThe agent is required to maintain this bridge for 6 months and may drop the environment variable in the next major version and emit only the stable HTTP and networking conventions.
This approach was approved in #1547