UNPKG

489 BTypeScriptView Raw
1import type { Options, SamplingContext } from '@sentry/types';
2/**
3 * Makes a sampling decision for the given options.
4 *
5 * Called every time a root span is created. Only root spans which emerge with a `sampled` value of `true` will be
6 * sent to Sentry.
7 */
8export declare function sampleSpan(options: Pick<Options, 'tracesSampleRate' | 'tracesSampler' | 'enableTracing'>, samplingContext: SamplingContext): [sampled: boolean, sampleRate?: number];
9//# sourceMappingURL=sampling.d.ts.map
\No newline at end of file