Skip to content

Emit schema url from HTTP instrumentations#15144

Merged
trask merged 8 commits intoopen-telemetry:mainfrom
trask:http-semconv-schema-url
Nov 5, 2025
Merged

Emit schema url from HTTP instrumentations#15144
trask merged 8 commits intoopen-telemetry:mainfrom
trask:http-semconv-schema-url

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Oct 25, 2025

Related to #12846

trask added 7 commits October 25, 2025 15:04
The test framework was not copying the schema URL from the protobuf
ScopeSpans to the InstrumentationScopeInfo when converting spans,
causing all schema URL assertions to fail even though spans were
correctly emitting schema URLs.
The instrumenterBuilder() method in DefaultHttpClientInstrumenterBuilder
was creating new Instrumenter builders without setting the schema URL.
This affected connection-level instrumentations (e.g., Netty connection
spans for error cases) which use this method to create their instrumenters.

Fixes failing tests in finagle-http-23.11 where connection error spans
were missing the schema URL.
The TelemetryConverter now correctly preserves schema URLs from protobuf
data. The MeterTest files create meters with schema URL 'http://schema.org',
so the test expectations need to be updated to match.
@trask trask marked this pull request as ready for review November 4, 2025 04:11
@trask trask requested a review from a team as a code owner November 4, 2025 04:11
.addAttributesExtractors(additionalExtractors)
.addOperationMetrics(HttpClientMetrics.get());
.addOperationMetrics(HttpClientMetrics.get())
.setSchemaUrl(SchemaUrls.V1_37_0);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

does setting schema url pose any additional restrictions to what we can do with these instrumentations?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we can still emit additional attributes if that what you're asking?

@trask trask merged commit a3d6e5a into open-telemetry:main Nov 5, 2025
81 checks passed
@trask trask deleted the http-semconv-schema-url branch November 5, 2025 04:52
crobert-1 added a commit to signalfx/splunk-otel-collector-chart that referenced this pull request Feb 6, 2026
crobert-1 added a commit to signalfx/splunk-otel-collector-chart that referenced this pull request Feb 9, 2026
…r/values.yaml (#2177)

* Update java instrumentation version

* Set schema url: open-telemetry/opentelemetry-java-instrumentation#15144

* remove schemaUrl from resource attributes

* add schemaUrl to scopeSpan

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Curtis Robert <[email protected]>
tgtanyagoel pushed a commit to signalfx/splunk-otel-collector-chart that referenced this pull request Feb 16, 2026
…r/values.yaml (#2177)

* Update java instrumentation version

* Set schema url: open-telemetry/opentelemetry-java-instrumentation#15144

* remove schemaUrl from resource attributes

* add schemaUrl to scopeSpan

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Curtis Robert <[email protected]>
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.

3 participants