Remove duplicated instrumentation scopes and increase nr of produced OTel metrics - #48328
Conversation
|
/cc @radcortez (opentelemetry) |
This comment has been minimized.
This comment has been minimized.
c938ff3 to
3b0dfc4
Compare
|
Native mode metrics need additional work. |
rsvoboda
left a comment
There was a problem hiding this comment.
Reported data using the reproducer application (https://github.com/rsvoboda/code-with-quarkus-otel) look better, duplicates are gone and 0 value entries look reasonable.
Native mode needs fixing as mentioned it the comment above.
@brunobat, Will https://quarkus.io/guides/opentelemetry-metrics need adjustments?
I noticed that some metrics were removed by this change
REMOVED
jvm.memory.init
jvm.system.cpu.utilization
ADDED
jvm.cpu.context_switch
jvm.cpu.limit
jvm.cpu.longlock
jvm.network.io
jvm.network.time
Removed ones are not mandatory per https://github.com/microprofile/microprofile-telemetry/blob/2.0/spec/src/main/asciidoc/metrics.adoc spec, so it shouldn't be a big deal, but maybe worth to add entry into migration guide
Yes, I'm looking into it now. I'm cataloging what we can get on Native... It's not obvious. |
3b0dfc4 to
a3f0216
Compare
a3f0216 to
5909f71
Compare
This comment has been minimized.
This comment has been minimized.
|
🙈 The PR is closed and the preview is expired. |
5909f71 to
f63070f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f63070f to
f6e64ed
Compare
Status for workflow
|
Status for workflow
|
|
@rsvoboda Updated the documentation. |
|
@brunobat can you share a bit about the struggles with Native mode? Is it something Quarkus would be able to achieve using substitutions or opentelemetry library will need some changes in their codebase? |
We use external libraries from OTel to create these metrics and it turns out most of them don't work with native mode. This this will require a lot of work to fix and should be made in the scope of a new issue. Most likely we will need to either contribute fixes to upstream or instrument ourselves. |
Please create one, I would like to watch it. |
Done, please check #48365 |
|
app https://github.com/rsvoboda/code-with-quarkus-otel/ with quarkus version changed to io.quarkus:quarkus-bom 999-SNAPSHOT with the patch NATIVE
@brunobat please chek it too and adjust the documentation JVM
|
|
@rsvoboda Native metrics will require a deeper look. They even might depend from the actual graalvm being used to compile the native image. Can we agree on merging these fixes and work on native under the scope of #48365 ? |
|
@gsmet added this to backport. We should have it in 3.20, if possible. |
Fixes: #46535