Skip to content

Emit schema url from instrumentations #11939

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

Open
trask opened this issue Aug 2, 2024 · 5 comments
Open

Emit schema url from instrumentations #11939

trask opened this issue Aug 2, 2024 · 5 comments
Labels
contribfest enhancement New feature or request needs triage New issue that requires triage

Comments

@trask
Copy link
Member

trask commented Aug 2, 2024

Is your feature request related to a problem? Please describe.

Currently none of the instrumentations emit schema url, which makes it harder for backends to detect which version of semantic conventions are being emitted (in particular relevant for old vs stable semconv like HTTP, and soon Database).

Describe the solution you'd like

Emit the appropriate schema url from each instrumentation

Describe alternatives you've considered

No response

Additional context

No response

@trask trask added enhancement New feature or request needs triage New issue that requires triage labels Aug 2, 2024
@jack-berg
Copy link
Member

If I'm understanding correctly, all instrumentations (stable or experimental) should be able to emit schema url (if applicable):

Unstable instrumentations provide no guarantees about the shape of the telemetry they produce and how that shape changes over time, from version to version. Span or metric names, attributes of any telemetry items may change without any restrictions. The produced telemetry MAY specify a Schema URL if the telemetry data conforms to a particular Schema.

@crossoverJie
Copy link
Member

@trask
Copy link
Member Author

trask commented Apr 10, 2025

@crossoverJie is this export from the Java agent? can you find where in the Java agent code we're setting it?

@crossoverJie
Copy link
Member

@crossoverJie is this export from the Java agent? can you find where in the Java agent code we're setting it?

It may be the features introduced by these two PRs.

open-telemetry/opentelemetry-java#3319
#5752

@trask
Copy link
Member Author

trask commented Apr 11, 2025

are you seeing schema url only on resource, or are you also seeing schema url populated on instrumentation scope?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribfest enhancement New feature or request needs triage New issue that requires triage
Projects
None yet
Development

No branches or pull requests

3 participants