Files
klz-cables.com/.pnpm-store/v10/files/2e/63519f49314b2e1c26e4c2a55a91190786448d2681ef45cfdcc267e5c82e5768e5421fe8e74867016ecaf3162232b42ab64f3fdff5fc60d6ed9a7da27bcdf4
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

55 lines
2.8 KiB
Plaintext

import type { PropagationContext, Span, SpanAttributes } from '@sentry/core';
import { Scope } from '@sentry/core';
/**
* Takes a shared (garbage collectable) object between resources, e.g. a headers object shared between Next.js server components and returns a common propagation context.
*
* @param commonObject The shared object.
* @param propagationContext The propagation context that should be shared between all the resources if no propagation context was registered yet.
* @returns the shared propagation context.
*/
export declare function commonObjectToPropagationContext(commonObject: unknown, propagationContext: PropagationContext): PropagationContext;
/**
* Takes a shared (garbage collectable) object between resources, e.g. a headers object shared between Next.js server components and returns a common propagation context.
*
* @param commonObject The shared object.
* @param isolationScope The isolationScope that should be shared between all the resources if no isolation scope was created yet.
* @returns the shared isolation scope.
*/
export declare function commonObjectToIsolationScope(commonObject: unknown): Scope;
/**
* Will mark the execution context of the callback as "escaped" from Next.js internal tracing by unsetting the active
* span and propagation context. When an execution passes through this function multiple times, it is a noop after the
* first time.
*/
export declare function escapeNextjsTracing<T>(cb: () => T): T;
/**
* Ideally this function never lands in the develop branch.
*
* Drops the entire span tree this function was called in, if it was a span tree created by Next.js.
*/
export declare function dropNextjsRootContext(): void;
/**
* Checks if the span is a resolve segment span.
* @param spanAttributes The attributes of the span to check.
* @returns True if the span is a resolve segment span, false otherwise.
*/
export declare function isResolveSegmentSpan(spanAttributes: SpanAttributes): boolean;
/**
* Returns the enhanced name for a resolve segment span.
* @param segment The segment of the resolve segment span.
* @param route The route of the resolve segment span.
* @returns The enhanced name for the resolve segment span.
*/
export declare function getEnhancedResolveSegmentSpanName({ segment, route }: {
segment: string;
route: string;
}): string;
/**
* Maybe enhances the span name for a resolve segment span.
* If the span is not a resolve segment span, this function does nothing.
* @param activeSpan The active span.
* @param spanAttributes The attributes of the span to check.
* @param rootSpanAttributes The attributes of the according root span.
*/
export declare function maybeEnhanceServerComponentSpanName(activeSpan: Span, spanAttributes: SpanAttributes, rootSpanAttributes: SpanAttributes): void;
//# sourceMappingURL=tracingUtils.d.ts.map