-
Hi all, I am trying to disable resources while using HOST_ID_RESOURCE_PROVIDER="io.opentelemetry.javaagent.shaded.instrumentation.resources.HostIdResourceProvider"
CONTAINER_RESOURCE_PROVIDER="io.opentelemetry.javaagent.shaded.instrumentation.resources.ContainerResourceProvider"
OS_RESOURCE_PROVIDER="io.opentelemetry.javaagent.shaded.instrumentation.resources.OsResourceProvider"
OTEL_JAVA_DISABLED_RESOURCE_PROVIDERS="$HOST_ID_RESOURCE_PROVIDER,$CONTAINER_RESOURCE_PROVIDER,$OS_RESOURCE_PROVIDER"
export OTEL_JAVA_DISABLED_RESOURCE_PROVIDERS
export KAFKA_LOG4J_OPTS="\
-Dlog4j2.configurationFile=file:$LOG4J2_CONFIGURATION_PATH \
-javaagent:/opt/app/opentelemetry-javaagent.jar \
-Dotel.jmx.target.system=kafka-broker" Final command
I also tried passing Despite the settings above, I still see properties like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It seems that I was using outdated info. The class names do not need the |
Beta Was this translation helpful? Give feedback.
It seems that I was using outdated info. The class names do not need the
io.opentelemetry.javaagent.shaded
prefix anymore. Values likeio.opentelemetry.instrumentation.resources.HostIdResourceProvider
work as expected