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

Clarify unit annotation format for metric semantic conventions #1680

Open
arminru opened this issue Aug 9, 2022 · 5 comments
Open

Clarify unit annotation format for metric semantic conventions #1680

arminru opened this issue Aug 9, 2022 · 5 comments

Comments

@arminru
Copy link
Member

arminru commented Aug 9, 2022

The semantic conventions for metrics currently use both spaces and underscores in unit annotations consisting of multiple words. Additionally, we have examples where the spaces between words are just omitted.

Before calling any of the metrics semantic conventions stable, we should add guidance on what's preferred and align the existing conventions to be consistent.

Also, as per the UCUM standard, both 1 and {count} are considered equivalent, which might lead to inconsistent conventions. A preference for either of them could also be laid out by the OTel spec.

Examples

https://github.com/open-telemetry/opentelemetry-specification/blob/534d4562b9e4f9ba030146783a1785f94b266862/specification/metrics/semantic_conventions/instrumentation/kafka.md?plain=1#L40-L42
https://github.com/open-telemetry/opentelemetry-specification/blob/534d4562b9e4f9ba030146783a1785f94b266862/specification/metrics/semantic_conventions/instrumentation/kafka.md?plain=1#L78-L83
https://github.com/open-telemetry/opentelemetry-specification/blob/534d4562b9e4f9ba030146783a1785f94b266862/specification/metrics/semantic_conventions/instrumentation/kafka.md?plain=1#L65
https://github.com/open-telemetry/opentelemetry-specification/blob/534d4562b9e4f9ba030146783a1785f94b266862/specification/metrics/semantic_conventions/faas-metrics.md?plain=1#L43

@tigrannajaryan
Copy link
Member

@arminru do yo plan to work on this? If not we need a "help wanted" label.

@evan-bradley
Copy link
Contributor

I'd like to take a look at this. @jsuereth do you see this issue depending on any output from the Semantic Conventions Working Group, or can it be worked on in parallel?

@evan-bradley
Copy link
Contributor

Was going through my backlog and saw this issue, I'm no longer able to work on this. @jsuereth can this be closed, or is it still needed?

@trask
Copy link
Member

trask commented Dec 13, 2024

@trask trask transferred this issue from open-telemetry/opentelemetry-specification Dec 13, 2024
@trask
Copy link
Member

trask commented Dec 13, 2024

The semantic conventions for metrics currently use both spaces and underscores in unit annotations consisting of multiple words. Additionally, we have examples where the spaces between words are just omitted.

Before calling any of the metrics semantic conventions stable, we should add guidance on what's preferred and align the existing conventions to be consistent.

Also, as per the UCUM standard, both 1 and {count} are considered equivalent, which might lead to inconsistent conventions. A preference for either of them could also be laid out by the OTel spec.

I believe this can be closed now. I checked and there are no units with spaces in them. And I believe this section now addresses the requested guidance: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metrics.md#instrument-units

@trask trask removed the help wanted Extra attention is needed label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants