Skip to content

Commit 6f36530

Browse files
committed
Drop heathcheck and PING traces
1 parent 9e8e794 commit 6f36530

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

services/opentelemetry-collector-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ service:
1313
traces:
1414
receivers: [otlp]
1515
exporters: [otlphttp]
16+
processors: [batch,probabilistic_sampler,filter/drop_healthcheck]
1617
processors:
1718
batch:
1819
timeout: 5s
1920
send_batch_size: ${TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE}
2021
probabilistic_sampler:
2122
sampling_percentage: ${TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE}
23+
filter/drop_healthcheck:
24+
error_mode: ignore
25+
traces:
26+
span:
27+
- attributes["http.route"] == "healthcheck_readiness_probe"
28+
- attributes["db.statement"] == "PING" and attributes["db.system"] == "redis"

0 commit comments

Comments
 (0)