-
Notifications
You must be signed in to change notification settings - Fork 889
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
Increase metric name maximum length from 63 to 255 characters #3648
Increase metric name maximum length from 63 to 255 characters #3648
Conversation
+1 |
I think this change is non-controversial (very small change, not breaking, doesn't require prototyping, sufficient demand), and can be included in 1.24.0 release? #3644 - FYI @carlosalberto |
I did some looking on what most o11y vendors tell on their public pages about metric name/key size just as an FYI
I think it should be fine since we are increasing the limit. If a back-end that accepted less than 255 truncated the metric name to fit their limit, would still continuing truncating as usual. |
@trask would you update the changelog by moving the entry from 1.24.0 to unreleased? |
hi @nayaniabhishek, here's the Java PR: open-telemetry/opentelemetry-java#5697 (I'm also looking forward to this change) but please note that it won't be merged until there has been a specification release that includes this spec change (see #2728 (comment)) |
This is inline with the current restriction. The previous 63 character one came from Otel, but with open-telemetry/opentelemetry-specification#3648 This has been bumped to 255. Updates #3065
This is inline with the current restriction. The previous 63 character one came from Otel, but with open-telemetry/opentelemetry-specification#3648 This has been bumped to 255. Updates #3065
This is inline with the current restriction. The previous 63 character one came from Otel, but with open-telemetry/opentelemetry-specification#3648 This has been bumped to 255. Updates #3065
This is inline with the current restriction. The previous 63 character one came from Otel, but with open-telemetry/opentelemetry-specification#3648 This has been bumped to 255. Updates #3065
## Changes Updated the following entry in the spec compliance matrix: * Section Metrics, item "Instrument names conform to the specified syntax." * Language C++ The lastest spec changes (#3648, #3422) are implemented by the following PR: * open-telemetry/opentelemetry-cpp#2281 * open-telemetry/opentelemetry-cpp#2303 so C++ can be marked compliant with the specification.
Hi team |
hi @kalkibhagavanmeda, I'd suggest asking this in the language repository for the SDK you are using, e.g. this is implemented in the latest released Java SDK version (open-telemetry/opentelemetry-java#5697) |
…n-telemetry#3703) ## Changes Updated the following entry in the spec compliance matrix: * Section Metrics, item "Instrument names conform to the specified syntax." * Language C++ The lastest spec changes (open-telemetry#3648, open-telemetry#3422) are implemented by the following PR: * open-telemetry/opentelemetry-cpp#2281 * open-telemetry/opentelemetry-cpp#2303 so C++ can be marked compliant with the specification.
Addresses part of #3422
Changes
Increases metric name maximum length from 63 to 255 characters.
Rationale
This limitation has been problematic in the Java and .NET communities (at least) where longer metric names are not uncommon:
Instrument name is invalid
with Spring Security 6 opentelemetry-java-instrumentation#7448 (comment)As @aabmass mentions in #3422 (comment)
but I didn't see any rationale in that PR for why that number was chosen.
Is this a breaking change?
I don't think so, since it's a loosening (as opposed to strengthening) of the requirement, but you could also argue the alternative, since it's a "strengthening" of the requirement on telemetry consumers.
Alternatively, we could introduce a configurable setting for the metric name maximum length, but this would essentially add an (unbounded) strengthening of the requirement on telemetry consumers, so I'm not sure it's preferable.