Skip to content
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

What is the purpose of SchemaURL? #2209

Closed
maxifom opened this issue Aug 29, 2021 · 1 comment
Closed

What is the purpose of SchemaURL? #2209

maxifom opened this issue Aug 29, 2021 · 1 comment

Comments

@maxifom
Copy link

maxifom commented Aug 29, 2021

I can see SchemaURL in the code everywhere, but it doesn't get exported by prometheus exporter, is it intended? And what the SchemaURL is used for?

@MrAlias
Copy link
Contributor

MrAlias commented Aug 30, 2021

The schema URL defines the version of semantic conventions used in resource. Each version of semantic conventions will export a unique schema URL that defines the form of the semantic conventions and the transforms to others.

// SchemaURL is the schema URL that matches the version of the semantic conventions
// that this package defines. Semconv packages starting from v1.4.0 must declare
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>

For more information on the schema URL take a look at the OTEP they were introduced with: https://github.com/open-telemetry/oteps/blob/09e285ec83d9f67759d99433f9ef1b32cd0551ca/text/0152-telemetry-schemas.md#schema-url

I imagine when the Prometheus exporter becomes stable it will include this information, but currently it is not expected to export this data.

Hope that helps.

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

No branches or pull requests

2 participants