-
Notifications
You must be signed in to change notification settings - Fork 176
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
Proposal for version-specific database semantic conventions using OTEL_SEMCONV_STABILITY_OPT_IN #1502
Comments
when a stable instrumentation introduces breaking changes to its telemetry, the instrumentation will need to take a major version bump (from a semantic versioning perspective), see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md#semantic-conventions-stability) once we release a first stable database semconv, then instrumentations will be able to release a stable version after that, if we introduce a breaking change to the stable database semconv (which would require a very high bar before we do this), then those stable instrumentations will need to take a major version bump to adopt the breaking change if this doesn't answer your question, could you give a concrete example picking a specific instrumentation and playing out its release cycle over time and which releases it would take in a breaking database semconv change? thanks! |
This makes sense, should we link to the Semantic Conventions Stability guarantee in the upgrade documentation? Something like this:
|
so, a second part I realized is that I think we only considered using otherwise we may have named it differently like and maybe we will still need something like that, I do think we're pretty narrowly focused on initial stability for now, and hoping we don't have to deal with a stable -> stable major version bump for at least a few years that said, I'm definitely supportive of adding some kind of clarification to the migration guide |
Area(s)
area:telemetry
Is your change request related to a problem? Please describe.
The Semantic Conventions for Database Client Calls introduced in open-telemetry/opentelemetry-specification#3404 and open-telemetry/opentelemetry-specification#3443 does not account for more than one breaking semantic convention update per major version. At most,
OTEL_SEMCONV_STABILITY_OPT_IN
can support a single upgrade (database
), the original conventions (unset), and both the original and the upgrae (database/dup
). Suggest updating the documentation to support a more extensible pattern that takes a comma separated list of semantic convention versions supported by the telemetry library. For example:To use a non-default version:
To include multiple versions:
To include all versions:
To include only the default version:
Describe the solution you'd like
Update the documentation concerning
OTEL_SEMCONV_STABILITY_OPT_IN
to include the following language:Describe alternatives you've considered
There are only two solutions to this: either support exactly one/many semantic convention update(s) per major version. If this issue is rejected, we should include the rationale in the documentation.
Additional context
This was brought up in open-telemetry/opentelemetry-go-contrib#6172 to update the semantic conventions for otelmongo.
The text was updated successfully, but these errors were encountered: