1 | import { Sampler, SamplingResult } from '@opentelemetry/api';
|
2 | /** Sampler that samples a given fraction of traces based of trace id deterministically. */
|
3 | export declare class TraceIdRatioBasedSampler implements Sampler {
|
4 | private readonly _ratio;
|
5 | private _upperBound;
|
6 | constructor(_ratio?: number);
|
7 | shouldSample(context: unknown, traceId: string): SamplingResult;
|
8 | toString(): string;
|
9 | private _normalize;
|
10 | private _accumulate;
|
11 | }
|
12 | //# sourceMappingURL=TraceIdRatioBasedSampler.d.ts.map |
\ | No newline at end of file |