From 80d33662e47fada66336b4489a1879d1508ae6b0 Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Sat, 4 Jul 2026 03:22:47 +0100 Subject: [PATCH] feat(telemetry): strip SDK-injected resource attributes at the collector Add a resource/stripsdk processor that deletes telemetry.sdk.language, telemetry.sdk.name, and telemetry.sdk.version (auto-added by the OTel SDK to every Resource). Wire it into the traces pipeline; the metrics and logs pipelines pick it up on the branches that introduce them. Co-Authored-By: Claude Opus 4.8 --- docker/telemetry/otel-collector-config.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docker/telemetry/otel-collector-config.yaml b/docker/telemetry/otel-collector-config.yaml index bb1b81e737..957adf036e 100644 --- a/docker/telemetry/otel-collector-config.yaml +++ b/docker/telemetry/otel-collector-config.yaml @@ -36,6 +36,18 @@ processors: - key: xrpl.network.type value: mainnet action: insert + # Strip SDK-injected resource attributes (telemetry.sdk.language/name/version). + # The OpenTelemetry SDK auto-adds these to every Resource; they carry no + # operational value and clutter the attribute set on every backend, so drop + # them here for all signals. + resource/stripsdk: + attributes: + - key: telemetry.sdk.language + action: delete + - key: telemetry.sdk.name + action: delete + - key: telemetry.sdk.version + action: delete exporters: debug: @@ -54,5 +66,5 @@ service: pipelines: traces: receivers: [otlp] - processors: [resource/tier, batch] + processors: [resource/tier, resource/stripsdk, batch] exporters: [debug, otlp/tempo]