Skip to content

Conversation

hannahramadan
Copy link
Contributor

@hannahramadan hannahramadan commented Jun 24, 2025

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 only
  • http/dup to emit both old and the stable conventions
  • a blank env var will emit old conventions only
  • Span names have also changed. Spans will now be named based on only their method. For example, what used to be HTTP GET is now just GET - spec

Special note about NET::HTTP changes: http.target is split into two separate attributes, url.path and url.query, under stable conventions. Unlike some other HTTP libraries, NET::HTTP reports these attributes as one path. Because of this, some additional work was done to to separate the path from the query in order to report them as separate attributes.

The 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

_(exporter.finished_spans.size).must_equal 0
end

it 'does not create a span when request ignored using a regexp' do
Copy link
Contributor

Choose a reason for hiding this comment

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

@hannahramadan - The Net::HTTP failing test looks related to changes from a recent PR. Those fixes may need to be incorporated into the dup/old/stable tests on this one:
https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1604/files#diff-99a3ac2b3a9bb5c2d057a09c5101ddb9d5b472344b41269b8a9f1269bceabaaa

@kaylareopelle kaylareopelle merged commit e4f9fb5 into open-telemetry:main Aug 25, 2025
86 of 88 checks passed
@hannahramadan hannahramadan deleted the net_http_semconv_stability_opt_in branch August 25, 2025 22:00
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