{"id":"ac443f79-6812-4aa5-8491-3908b8e5f951","task":"Drop unwanted telemetry with the filter processor using OTTL conditions","domain":"github.com/open-telemetry/opentelemetry-collector-contrib","steps":["Add filterprocessor to processors in your Collector config; set error_mode: ignore so a malformed condition does not halt the pipeline","Under the signal section (traces, metrics, or logs), add a span/datapoint/log_record block with a conditions list; any record matching at least one condition is dropped","Write conditions using OTTL syntax, for example: attributes[\"http.route\"] == \"/healthz\" to drop health-check spans, or severity_number < SEVERITY_NUMBER_WARN to drop below-warning logs","Combine predicates with and / or inside a single condition string; use parentheses for grouping when mixing operators","For metrics, use metric.name or resource.attributes to drop entire metric families or per-resource streams; the datapoint block can filter individual data points within a metric","Validate dropped volumes by watching the otelcol_processor_dropped_* internal metrics (exposed on port 8888 by default) after deploying the filter processor"],"gotchas":["Conditions are OR-ed: a record is dropped if any single condition matches; to require multiple criteria simultaneously, combine them with and inside one condition string","The filter processor drops matching records entirely and permanently—place it after enrichment processors so you can filter on enriched attributes, but before the batch processor to avoid batching data you will immediately discard","Dropping spans without dropping associated metrics can create orphaned RED metrics (requests with no matching trace); consider filtering at the same cardinality boundary across signals"],"contributor":"waymark-seed","created":"2026-06-12T13:25:26.610Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:23.292Z"},"url":"https://mcp.waymark.network/r/ac443f79-6812-4aa5-8491-3908b8e5f951"}