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
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
import { InstrumentationBase, type InstrumentationConfig, type InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
|
|
import type { Integration, OpenAiOptions } from '@sentry/core';
|
|
export interface OpenAiIntegration extends Integration {
|
|
options: OpenAiOptions;
|
|
}
|
|
type OpenAiInstrumentationOptions = InstrumentationConfig & OpenAiOptions;
|
|
/**
|
|
* Sentry OpenAI instrumentation using OpenTelemetry.
|
|
*/
|
|
export declare class SentryOpenAiInstrumentation extends InstrumentationBase<OpenAiInstrumentationOptions> {
|
|
constructor(config?: OpenAiInstrumentationOptions);
|
|
/**
|
|
* Initializes the instrumentation by defining the modules to be patched.
|
|
*/
|
|
init(): InstrumentationModuleDefinition;
|
|
/**
|
|
* Core patch logic applying instrumentation to the OpenAI and AzureOpenAI client constructors.
|
|
*/
|
|
private _patch;
|
|
/**
|
|
* Patch logic applying instrumentation to the specified client constructor.
|
|
*/
|
|
private _patchClient;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=instrumentation.d.ts.map |