Files
klz-cables.com/.pnpm-store/v10/files/7f/95259db015f0a4a86dd31f7b09afad2d826579bed732588e82202bd3169220d565558255d3c3f8a29ba3599eabfee4eda951c56a3b018c9ee461158889fb62
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

38 lines
1.9 KiB
Plaintext

import { Client } from '../client';
import { PropagationContext } from '../types-hoist/tracing';
import { 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