Skip to content

Commit 39c7f34

Browse files
committed
Telemetry: Filter out (drop) healthcheck and redis PING related spans
1 parent fa7d040 commit 39c7f34

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

services/jaeger/opentelemetry-collector-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ service:
1313
traces:
1414
receivers: [otlp]
1515
exporters: [otlphttp]
16-
processors: [batch,probabilistic_sampler]
16+
processors: [batch,probabilistic_sampler,filter/drop_healthcheck]
1717
telemetry:
1818
logs:
1919
level: ${TRACING_OPENTELEMETRY_COLLECTOR_SERVICE_TELEMETRY_LOG_LEVEL}
@@ -23,3 +23,9 @@ processors:
2323
send_batch_size: ${TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE}
2424
probabilistic_sampler:
2525
sampling_percentage: ${TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE}
26+
filter/drop_healthcheck:
27+
error_mode: ignore
28+
traces:
29+
span:
30+
- attributes["http.route"] == "healthcheck_readiness_probe"
31+
- attributes["db.statement"] == "PING" and attributes["db.system"] == "redis"

0 commit comments

Comments
 (0)