Skip to content

StatsOptions

Defined in: src/stats.ts:3

optional percentiles?: number[]

Defined in: src/stats.ts:9

Latency percentiles to report, as fractions. Default [0.5, 0.9, 0.99] → p50, p90, p99.


optional pipeline?: string | string[]

Defined in: src/stats.ts:5

Only count these pipelines (by name). Default: every pipeline in the process.


optional timeProvider?: TimeProvider

Defined in: src/stats.ts:11

Default: the system clock with unref’d timers.


optional window?: Duration

Defined in: src/stats.ts:7

Length of the rolling window. Default 10 s, kept as 10 buckets: data ages out one bucket (window / 10) at a time.