-
Notifications
You must be signed in to change notification settings - Fork 217
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
Document convention that Counter metrics shouldn't end with .count
?
#1979
Comments
Sounds good to me, but I think we should also rename
Initially it was intended to have different namespaces per signal: E.g. So this change is fine with me, we might even remove the
Here I'm not that that happy about dropping the So I'm not opposing to removing the |
ah, no problem, my only goal here was to get rid of the |
I've adjusted the names for log health metrics in #1921. Based on the outcomes of the naming discussions in that PR, I'll open up a follow-up PR to apply the same name pattern to the existing span health metrics. |
This isn't mentioned in https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/naming.md#naming-rules-for-counters-and-updowncounters, but the convention has been followed pretty closely to only use
.count
suffix on UpDownCounter metrics (and not to use it on Counter metrics).I'm not thinking of reasons right now, maybe related to the ambiguity of Counters being commonly exported as both delta and cumulative, and maybe related to the Prometheus exporter converting these to
_count_total
(?)There are just a few metrics that violate this convention:
otel.sdk.span.ended.count
otel.sdk.processor.span.processed.count
otel.sdk.exporter.span.exported.count
dotnet.thread_pool.work_item.count
- this one is stable, can't rename itOne option for the
otel.sdk.*
metric names could be:otel.sdk.ended_spans
otel.sdk.processor.processed_spans
otel.sdk.exporter.exported_spans
cc @JonasKunz
The text was updated successfully, but these errors were encountered: