-
Notifications
You must be signed in to change notification settings - Fork 990
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
use seconds for OTLP export #3875
Conversation
@zeitlinger Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@zeitlinger Thank you for signing the Contributor License Agreement! |
Thanks for the PR! Based on the PR, the semantic conventions spec says that:
I found this somewhat confusing. Why does the semantic conventions spec says anything about how to measure time, shouldn't it be in the SDK specs? Can one convention define one unit and another one define a different one so you get into a conflict? Why is it specified at all since OTel does not have a Timer concept. Based on this, I don't think we should merge this PR since:
What do you think? |
@jonatan-ivanov Do you think it still makes sense to address the referenced issue? I mean providing configurable "baseUnit"? |
@lenin-jaganathan Definitely, especially because the OTel Collector is not converting time units to the backend that is forwarding to so the component that emits OTLP have to. This is very unfortunate but it's not a huge change on Micrometer's side. |
I've given it a try: #3883 |
This is a key question - how does micrometer fit into OpenTelemetry ecosystem? OTLP is a building block, but the otel semantic conventions are an important building block as well - becoming more important as they are stabilizing. One use case is an otel JVM dashboard. Would micrometer aim to support this once the semantic conventions are stable? |
Yes, we are planning to look into providing support for OTel Semconv (we also contributed to it). |
Superseded by #3883 |
@jonatan-ivanov Just wanted to get more clarity on your comment
Does this mean JVM Metrics generated by micrometer will adhere to OTEL Sem conv for JVM Metrics? And are there plans on adding filters for other binders as well. E.g: OTEL has sem conv for HTTP metrics and how is micrometer planning to adapt it? |
We can't promise it will since right now semconv is not stable but once it becomes stable and gains popularity we are planning to look into providing that feature to the users. This can be implemented via Micrometer providing
I think the above should be applicable everywhere it makes sense (http, mongo, etc). I think the "how" will be a question for every single instrumentation. |
that's great to hear. I think it would make sense to come back to this topic (making seconds the default base unit) together with the otel semconv then - because both topics will help users to re-use dashboards for all of their java applications. |
use seconds for otlp export, as specified in open-telemetry/opentelemetry-java-instrumentation#8355