Skip to content

I'm using the OpenTelemetry Java agent and want to remove resource information when collecting logs. #11859

Answered by laurit
JangCool asked this question in Q&A
Discussion options

You must be logged in to vote

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 return Resource.empty() from the customizer.
service.instance.id is provided by https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/incubat…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JangCool
Comment options

@laurit
Comment options

Answer selected by JangCool
@JangCool
Comment options

@ogerardin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants