OpenTelemetry collector-contrib v0.146.0 introduces OTTL context inference to the Filter Processor, previously only available in the Transform Processor. Four new top-level config fields — trace_conditions, metric_conditions, log_conditions, and profile_conditions — let users write flat condition lists without manually organizing them into context blocks like resource, span, or spanevent. The processor automatically infers the execution context from path prefixes, combines conditions with logical OR, and executes them hierarchically (higher-level matches short-circuit lower-level evaluation for performance). Advanced grouping with per-group error_mode settings is also supported. The legacy configuration format remains fully supported.

4m read timeFrom opentelemetry.io
Post cover image
Table of contents
The issue: OTTL context confusionThe new approach: Conditions with OTTL context inferenceMigration and compatibilityTry it out

Sort: