Files
klz-cables.com/.pnpm-store/v10/files/12/3183af21d57704533e51441e47b1a3e579c966ce5481c9a85845682eeadcba4a40a083d62077ee9aedd4527c1f9b425169c4f5e9c2ad43d91a5397acd67671
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

29 lines
1.4 KiB
Plaintext

import type { Context } from '@opentelemetry/api';
import { SpanKind } from '@opentelemetry/api';
import type { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base';
import { SamplingDecision } from '@opentelemetry/sdk-trace-base';
import type { Client, SpanAttributes } from '@sentry/core';
/**
* A custom OTEL sampler that uses Sentry sampling rates to make its decision
*/
export declare class SentrySampler implements Sampler {
private _client;
constructor(client: Client);
/** @inheritDoc */
shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, spanAttributes: SpanAttributes, _links: unknown): SamplingResult;
/** Returns the sampler name or short description with the configuration. */
toString(): string;
}
/**
* Wrap a sampling decision with data that Sentry needs to work properly with it.
* If you pass `decision: undefined`, it will be treated as `NOT_RECORDING`, but in contrast to passing `NOT_RECORDING`
* it will not propagate this decision to downstream Sentry SDKs.
*/
export declare function wrapSamplingDecision({ decision, context, spanAttributes, sampleRand, downstreamTraceSampleRate, }: {
decision: SamplingDecision | undefined;
context: Context;
spanAttributes: SpanAttributes;
sampleRand?: number;
downstreamTraceSampleRate?: number;
}): SamplingResult;
//# sourceMappingURL=sampler.d.ts.map