Replies: 1 comment 3 replies
-
I tried out |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been trying to disable the attributes like
process.command_line
which comes from the ProcessResourceProvider as far as I can tell.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
-D
option:otel.java.disabled.resource.providers=io.opentelemetry.instrumentation.resources.ProcessResourceProvider
but the process.command_line still comes out.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
otel.java.enabled.resource-providers
which looks like a typo perhaps?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions