Files
klz-cables.com/.pnpm-store/v10/files/93/cf0e13e8f4dbebb98bba02baaa96c458dd4ddcfef2421e70df1e41bd7ac9ff0bf7126a9e668b1bf311eff143f20ed2e064d1744f5f10c71afa4e7ed2a0ffac
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

37 lines
1.9 KiB
Plaintext

import type { Client } from '../client';
import type { PropagationContext } from '../types-hoist/tracing';
import type { TraceparentData } from '../types-hoist/transaction';
export declare const TRACEPARENT_REGEXP: RegExp;
/**
* Extract transaction context data from a `sentry-trace` header.
*
* This is terrible naming but the function has nothing to do with the W3C traceparent header.
* It can only parse the `sentry-trace` header and extract the "trace parent" data.
*
* @param traceparent Traceparent string
*
* @returns Object containing data from the header, or undefined if traceparent string is malformed
*/
export declare function extractTraceparentData(traceparent?: string): TraceparentData | undefined;
/**
* Create a propagation context from incoming headers or
* creates a minimal new one if the headers are undefined.
*/
export declare function propagationContextFromHeaders(sentryTrace: string | undefined, baggage: string | number | boolean | string[] | null | undefined): PropagationContext;
/**
* Create sentry-trace header from span context values.
*/
export declare function generateSentryTraceHeader(traceId?: string | undefined, spanId?: string | undefined, sampled?: boolean): string;
/**
* Creates a W3C traceparent header from the given trace and span ids.
*/
export declare function generateTraceparentHeader(traceId?: string | undefined, spanId?: string | undefined, sampled?: boolean): string;
/**
* Determines whether a new trace should be continued based on the provided baggage org ID and the client's `strictTraceContinuation` option.
* If the trace should not be continued, a new trace will be started.
*
* The result is dependent on the `strictTraceContinuation` option in the client.
* See https://develop.sentry.dev/sdk/telemetry/traces/#stricttracecontinuation
*/
export declare function shouldContinueTrace(client: Client, baggageOrgId?: string): boolean;
//# sourceMappingURL=tracing.d.ts.map