Skip to content

Commit

Permalink
Telemetry: Filter out (drop) healthcheck and redis PING related spans
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnicegyu11 committed Nov 19, 2024
1 parent fa7d040 commit 39c7f34
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion services/jaeger/opentelemetry-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ service:
traces:
receivers: [otlp]
exporters: [otlphttp]
processors: [batch,probabilistic_sampler]
processors: [batch,probabilistic_sampler,filter/drop_healthcheck]
telemetry:
logs:
level: ${TRACING_OPENTELEMETRY_COLLECTOR_SERVICE_TELEMETRY_LOG_LEVEL}
Expand All @@ -23,3 +23,9 @@ processors:
send_batch_size: ${TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE}
probabilistic_sampler:
sampling_percentage: ${TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE}
filter/drop_healthcheck:
error_mode: ignore
traces:
span:
- attributes["http.route"] == "healthcheck_readiness_probe"
- attributes["db.statement"] == "PING" and attributes["db.system"] == "redis"

0 comments on commit 39c7f34

Please sign in to comment.