sample

sample #

CategoryScope
Routingrecord

The “sample” pipeline processor: probabilistic sampling — keep each record with probability ratio (0.0-1.0), drop the rest. Combine with the framework’s when: conditions to sample selectively (e.g. only DEBUG logs).

Configuration #

FieldTypeDefaultDescription
ratiofloat640.5Keep probability for sampling (0.0 to 1.0).

Example #

processor:
  - for_each:
      processor:
        - sample:
            ratio: 0.1
            action: drop
Edit Edit this page