-
Notifications
You must be signed in to change notification settings - Fork 890
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
Define attributes equality and make all fields as identifying for Tracer, Meter, Logger, EventLogger #4161
Conversation
SDK MUST be able to export all passed input.
@yurishkuro, you can take a look if this is inline with your #4146 (comment) |
PTAL @jmacd @tigrannajaryan |
@open-telemetry/specs-approvers This is a change in Stable docs. We need to decide if it is allowed. We are essentially saying that a behavior that was previously a user error (repeatedly obtain Tracer/Meter/Logger with the same name/version/schema_url and different attributes) is now valid. Can we treat this as a backward compatible, non-breaking enhancement that fits our stability guarantees? |
For reference, From mentioned issue description:
|
That is generally considered a backwards compatible change, because it relaxes the input requirements of the API. A step in the opposite direction (error where there wasn't one previously) would be a breaking change. |
Status update: |
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
I think this needs updates to some of the compatibility docs (at least prometheus). Currently, Prometheus adds scope name and scope version as labels to ensure we don't end up with duplicate timeseries, and we are able to put scope attributes in a separate TIL |
@dashpole, are you able to help with it? Do you think that it could be done in a separate PR? Should it be blocking this PR or can it be handled afterwards? Side note: Zipkin exporter does not export scope info at all (name, version, schemeURL, attributes). |
…cer, Meter, Logger, EventLogger (open-telemetry#4161)
…fields (open-telemetry#4244) Small follow up to open-telemetry#4161 ## Changes Updates the glossary to indicate that instrumentation scope's schema url and attributes are also identifying. I simplified the language a bit. * [x] Related issues open-telemetry#4160
Fixes #4160 (prior art: #4146)
Python SDK, PHP SDK look to be compliant with the proposal. AFAIK these are the only languages which handle scope attributes in their stable releases.
Additional note:
I do not want to merge it before I prototype it in the Go SDK. However, I want to have some "acceptance" before writing the prototype.PoC in Go: open-telemetry/opentelemetry-go#5806Remarks: I do not feel competent to handle similar issue for instruments in metrics. Especially how to refine the duplicate instrument registration section. I decided to leave this section untouched.