tap

tap #

CategoryScope
Generalrecord

Side-channel sampler: copies a sampled fraction of records to a debug queue or lane. The main flow is never affected — it is an in-flight copy, not a divert. Sanctioned side-channel for debug indices, shadow runs and observation sampling. Exactly one target (queue or lane).

Configuration #

FieldTypeDefaultDescription
sample_ratiofloat1.0Fraction of records copied, within (0, 1]. 1.0 copies everything.
queueobjectSide target queue ({ name }). Mutually exclusive with lane.
lanestringSide target lane. Mutually exclusive with queue.

Example #

Copy 10% of records into a debug lane:

- tap:
    sample_ratio: 0.1
    lane: debug-samples
Edit Edit this page