-
I'm receiving log information using the Java collector server version, but I do not want to receive resource information. Even if I pass resource-related settings as empty values, they are still sent. Are they being sent as default values? Is there a way to exclude them? It seems to unnecessarily consume data for transmission. The same goes for trace and metrics information. Please help. otel.resource.attributes=
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Resource information is sent once per exported batch so when your exported batch has 100 spans there will be only a singe copy of the resource attributes.
you will need to list the class names of the providers you wish to disable. Most of the providers can be found in https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/resources/library |
Beta Was this translation helpful? Give feedback.
The attributes starting with
telemetry
are required by otel specification https://opentelemetry.io/docs/specs/semconv/resource/#telemetry-sdk As far as I know opentelemetry java sdk does not offer a configuration option for disabling these. If you need to remove this I'd try implementing an agent extension Have a look at https://github.com/signalfx/splunk-otel-java/blob/main/custom/src/main/java/com/splunk/opentelemetry/TruncateCommandLineWhenMetricsEnabled.java for ideas, if you wish to drop all resource attributes you could returnResource.empty()
from the customizer.service.instance.id
is provided by https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/incubat…