diff --git a/services/opentelemetry-collector-config.yaml b/services/opentelemetry-collector-config.yaml index 14640ab61da8..7386666956e4 100644 --- a/services/opentelemetry-collector-config.yaml +++ b/services/opentelemetry-collector-config.yaml @@ -13,10 +13,16 @@ service: traces: receivers: [otlp] exporters: [otlphttp] - processors: [batch,probabilistic_sampler] + processors: [batch,probabilistic_sampler,filter/drop_healthcheck] processors: batch: timeout: 5s 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"