-
Notifications
You must be signed in to change notification settings - Fork 908
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
cardinality explosion due to thread.name in runtime-telemetry-java17 metrics #13407
Comments
There's also a |
Are you using the OpenTelemetry Java agent, the OpenTelemetry starter or another thing? Perhaps you could try to drop some metrics at the metric export level. |
we're using the OpenTelemetry Java agent in two of the apps with problems (2.10.1, and 2.11.0), and started using a custom agent distribution with the other app with the issue (2.13.1). yes, I plan to workaround the problem by:
|
I think I'd support dropping @SylvainJuge @robsunday @PeterF778 are we capturing |
No, the I am not aware of the usages in other platforms, but this sounds like an attribute where the cardinality will need to be assessed carefully for every usage, so maybe adding something in the semconv about this would be relevant. The same probably applies to For example:
|
Describe the bug
in some of our apps, we're seeing a cardinality explosion when enabling runtime-telemetry-java17
the culprits seem to be the following metrics:
jvm.network.io
jvm.network.time
jvm.memory.allocation
each of those metrics include a
thread.name
attribute that can have many variations.Steps to reproduce
set
otel.instrumentation.runtime-telemetry-java17.enable-all=true
for an app that allocates memory or does network io on many different threads.Expected behavior
thread.name should only be included if it's low cardinality
Actual behavior
thread.name has many, many values (depending on app framework/libraries used)
Javaagent or library instrumentation version
2.10.0, 2.11.0, and 2.13.1
Environment
eclipse-temurin:17-jre
Additional context
No response
The text was updated successfully, but these errors were encountered: