Files
klz-cables.com/.pnpm-store/v10/files/73/2effad1202176f0cef27404f90c71edd9f9734597e4e843233731733caf1d99889509db8830ec6e251266e03c7fe91dce207d1803da503c4741d18d88b4a20
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

29 lines
1.4 KiB
Plaintext

import { InstrumentationBase, type InstrumentationConfig, type InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
import type { LangChainOptions } from '@sentry/core';
type LangChainInstrumentationOptions = InstrumentationConfig & LangChainOptions;
/**
* Sentry LangChain instrumentation using OpenTelemetry.
*/
export declare class SentryLangChainInstrumentation extends InstrumentationBase<LangChainInstrumentationOptions> {
constructor(config?: LangChainInstrumentationOptions);
/**
* Initializes the instrumentation by defining the modules to be patched.
* We patch the BaseChatModel class methods to inject callbacks
*
* We hook into provider packages (@langchain/anthropic, @langchain/openai, etc.)
* because @langchain/core is often bundled and not loaded as a separate module
*/
init(): InstrumentationModuleDefinition | InstrumentationModuleDefinition[];
/**
* Core patch logic - patches chat model methods to inject Sentry callbacks
* This is called when a LangChain provider package is loaded
*/
private _patch;
/**
* Patches chat model methods (invoke, stream, batch) to inject Sentry callbacks
* Finds a chat model class from the provider package exports and patches its prototype methods
*/
private _patchRunnableMethods;
}
export {};
//# sourceMappingURL=instrumentation.d.ts.map