Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/observability / / createSampler
Function: createSampler()
ts
function createSampler(opts?): Sampler;Defined in: packages/observability/src/tracer/sampling.ts:72
Build a Sampler from the supplied options. The sampler is intentionally inexpensive — every decision boils down to a single random < threshold comparison.
Parameters
| Parameter | Type |
|---|---|
opts | SamplingOptions |