Skip to content

Conversation

@trask
Copy link
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
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
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
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