Files
klz-cables.com/.pnpm-store/v10/files/6b/a69698b1e4f73431cda049bc6cfe6bf54fb50dfd72824901db682f969e1b05ba4a5d58c3e7f11b1e83df9a9a92786d0a09b0b80e84001b0b8637009afe58e2
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

42 lines
1.4 KiB
Plaintext

/**
* Mark AI provider modules to skip instrumentation wrapping.
*
* This prevents duplicate spans when a higher-level integration (like LangChain)
* already instruments AI providers at a higher abstraction level.
*
* @internal
* @param modules - Array of npm module names to skip (e.g., '@anthropic-ai/sdk', 'openai')
*
* @example
* ```typescript
* // In LangChain integration
* _INTERNAL_skipAiProviderWrapping(['@anthropic-ai/sdk', 'openai', '@google/generative-ai']);
* ```
*/
export declare function _INTERNAL_skipAiProviderWrapping(modules: string[]): void;
/**
* Check if an AI provider module should skip instrumentation wrapping.
*
* @internal
* @param module - The npm module name (e.g., '@anthropic-ai/sdk', 'openai')
* @returns true if wrapping should be skipped
*
* @example
* ```typescript
* // In AI provider instrumentation
* if (_INTERNAL_shouldSkipAiProviderWrapping('@anthropic-ai/sdk')) {
* return Reflect.construct(Original, args); // Don't instrument
* }
* ```
*/
export declare function _INTERNAL_shouldSkipAiProviderWrapping(module: string): boolean;
/**
* Clear all AI provider skip registrations.
*
* This is automatically called at the start of Sentry.init() to ensure a clean state
* between different client initializations.
*
* @internal
*/
export declare function _INTERNAL_clearAiProviderSkips(): void;
//# sourceMappingURL=providerSkip.d.ts.map