UNPKG

738 BTypeScriptView Raw
1import type { Client, DynamicSamplingContext, Scope, Span } from '@sentry/types';
2/**
3 * Creates a dynamic sampling context from a client.
4 *
5 * Dispatches the `createDsc` lifecycle hook as a side effect.
6 */
7export declare function getDynamicSamplingContextFromClient(trace_id: string, client: Client, scope?: Scope): DynamicSamplingContext;
8/**
9 * Creates a dynamic sampling context from a span (and client and scope)
10 *
11 * @param span the span from which a few values like the root span name and sample rate are extracted.
12 *
13 * @returns a dynamic sampling context
14 */
15export declare function getDynamicSamplingContextFromSpan(span: Span): Readonly<Partial<DynamicSamplingContext>>;
16//# sourceMappingURL=dynamicSamplingContext.d.ts.map
\No newline at end of file