-
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
Question: naming conventions, prefer . (dot) or _ (underscore)? #2740
Comments
I also just noticed it is not consistent: RPC spec follows So I am guessing this is just in progress? |
The minimum bar is captured by the API spec https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-naming-rule. My general observation is that folks intend to use Some additional things to consider while exporting the data to specific backends, e.g. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md#otlp-metric-points-to-prometheus |
Yes, if you scroll to the very top of this spec, you can see it marked as Experimental instead of Stable, which means it could have breaking changes or even get removed or redesigned in the near future. |
Probably it makes sense to apply the same logic as with attribute naming: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/attribute-naming.md |
Thank you for the links and explanation. @reyang - regarding |
My interpretation is also as @reyang mentioned. A dot For the |
faas invoked does have a grouping concept, at least in the attributes: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/faas-metrics.md#attributes But this issue isn't to argue/discuss the choice of FaaS naming. I have my answer: |
For FaaS, "invoked" is not really suitable as a namespace IMHO. "faas.invoked.request.size" = the size of the invoked request? That does not make sense. Maybe it would be better to rename this to |
I have a question regarding naming conventions. When looking at FaaS metrics sematic conventions here, I see the names uses a mix of
.
and_
. So my question is:Why was a name like
faas.invoke_duration
chosen overfaas.invoke.duration
?As I add my own metrics, I want to make sure I understand this rationale and know when to use
.
vs_
for names.The text was updated successfully, but these errors were encountered: