Skip to content

Auto-instrumentation with JMX #11138

Answered by laurit
sarkisjad asked this question in Q&A
Apr 15, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Resource attributes aren't specific to jmx-metrics it is sent along with all the telemetry generated from the agent or the otel java sdk. You can get rid of the undesired attributes by disabling the corresponding resource provider, see https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure#resource-provider-spi and https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/resources/library/src/main/java/io/opentelemetry/instrumentation/resources Or you can filer out the keys that you don't want https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure#opentelemetry-resource

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sarkisjad
Comment options

@sarkisjad
Comment options

@laurit
Comment options

Answer selected by sarkisjad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants