Files
klz-cables.com/.pnpm-store/v10/files/a3/34c0fce654cdb85f2cc5c65e0e095efd06c17124d4496604d2706784bbe7d2726053817fd5147529db79fca4f7d87887698af64c50074f7f748e34871ae5e7
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

30 lines
1.4 KiB
Plaintext

import { InstrumentationBase, InstrumentationConfig, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
import { 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