-
Hi, I've been trying to disable the attributes like The documentation https://opentelemetry.io/docs/languages/java/configuration/#properties-resource has the example: For example, to disable the OS resource provider, set -Dotel.java.disabled.resource.providers=io.opentelemetry.instrumentation.resources.OsResourceProvider. OK, so the ProcessResourceProvider I want to turn off is in the same package, so just update the file name. I've tried configuring this property as an environment variable and as a Lost on what to try? I did see this issue that suggested package names changes might get in the way? #6955 Also spotted the documentation has Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I tried out |
Beta Was this translation helpful? Give feedback.
You will have to contact IBM support or OpenLiberty community for this. Judging from https://github.com/OpenLiberty/open-liberty/blob/integration/dev/io.openliberty.microprofile.telemetry.2.0.internal/src/io/openliberty/microprofile/telemetry20/internal/info/OpenTelemetryInfoFactoryImpl.java#L66 I'd guess that they override the normal resource configuration in the otel sdk so the flags won't work. Have a look at how otel sdk configures the resource providers in https://github.com/open-telemetry/opentelemetry-java/blob/2de5a2c484868d308470ad3fea4aadf3ec59005b/sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/ResourceConfiguration.java#L116 to see how the flag is…