Files
klz-cables.com/.pnpm-store/v10/files/e4/8ae617d6d84b2721b1ac60d8df580311bfd6f94e4e2c287de82ea6ff8dc3d6ee7d8a4091d35032d88b999dbee335d9d1775ca9fc619913c965e649fb4783b8
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

46 lines
1.9 KiB
Plaintext

import { InstrumentationConfig, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
import { InstrumentationBase } from '@opentelemetry/instrumentation';
interface RecordingOptions {
recordInputs?: boolean;
recordOutputs?: boolean;
}
/**
* Determines whether to record inputs and outputs for Vercel AI telemetry based on the configuration hierarchy.
*
* The order of precedence is:
* 1. The vercel ai integration options
* 2. The experimental_telemetry options in the vercel ai method calls
* 3. When telemetry is explicitly enabled (isEnabled: true), default to recording
* 4. Otherwise, use the sendDefaultPii option from client options
*/
export declare function determineRecordingSettings(integrationRecordingOptions: RecordingOptions | undefined, methodTelemetryOptions: RecordingOptions, telemetryExplicitlyEnabled: boolean | undefined, defaultRecordingEnabled: boolean): {
recordInputs: boolean;
recordOutputs: boolean;
};
/**
* This detects is added by the Sentry Vercel AI Integration to detect if the integration should
* be enabled.
*
* It also patches the `ai` module to enable Vercel AI telemetry automatically for all methods.
*/
export declare class SentryVercelAiInstrumentation extends InstrumentationBase {
private _isPatched;
private _callbacks;
constructor(config?: InstrumentationConfig);
/**
* Initializes the instrumentation by defining the modules to be patched.
*/
init(): InstrumentationModuleDefinition;
/**
* Call the provided callback when the module is patched.
* If it has already been patched, the callback will be called immediately.
*/
callWhenPatched(callback: () => void): void;
/**
* Patches module exports to enable Vercel AI telemetry.
*/
private _patch;
}
export {};
//# sourceMappingURL=instrumentation.d.ts.map