SamplingConfig

interface
capabilities.ts:15

Sampling configuration for event throttling/filtering.

Configured in the store wrapper and communicated via handshake. Each rule targets events by composite key ([channel, type] tuples), and both agents apply them before an event is reported: an ignored route is never sent, a throttled one is sent at the configured rate.

Properties

NameTypeDescription
ignore?{ keys: [string, string][] }[]Ignore: never send events matching these keys.
skip?{ every: number; keys: [string, string][] }[]Skip-N: send every Nth event for specified keys.
throttle?{ intervalMs: number; keys: [string, string][] }[]Throttle: at most 1 update per intervalMs for specified event keys.