-
Hello, For instance, I am aware that jmx auto instrumentation generates resource attributes like My goal is to remove some resource attributes, rename some and add others. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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