UNPKG

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