File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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,11 @@ 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["http.route"] == "healthcheck_liveness_probe"
32+ - attributes["http.target"] == "/metrics" and IsMatch(attributes["http.user_agent"], ".*Prometheus.*") == true
33+ - attributes["db.statement"] == "PING" and attributes["db.system"] == "redis"
You can’t perform that action at this time.
0 commit comments