@brizz/sdk 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +12 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/preload.cjs +12 -3
- package/dist/preload.cjs.map +1 -1
- package/dist/preload.js +12 -3
- package/dist/preload.js.map +1 -1
- package/package.json +5 -5
package/dist/preload.js
CHANGED
|
@@ -229,11 +229,11 @@ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
|
|
|
229
229
|
var SDK_LANGUAGE = "typescript";
|
|
230
230
|
|
|
231
231
|
// src/internal/instrumentation/registry.ts
|
|
232
|
+
import { LangChainInstrumentation } from "@arizeai/openinference-instrumentation-langchain";
|
|
232
233
|
import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic";
|
|
233
234
|
import { BedrockInstrumentation } from "@traceloop/instrumentation-bedrock";
|
|
234
235
|
import { ChromaDBInstrumentation } from "@traceloop/instrumentation-chromadb";
|
|
235
236
|
import { CohereInstrumentation } from "@traceloop/instrumentation-cohere";
|
|
236
|
-
import { LangChainInstrumentation } from "@traceloop/instrumentation-langchain";
|
|
237
237
|
import { LlamaIndexInstrumentation } from "@traceloop/instrumentation-llamaindex";
|
|
238
238
|
import { OpenAIInstrumentation } from "@traceloop/instrumentation-openai";
|
|
239
239
|
import { PineconeInstrumentation } from "@traceloop/instrumentation-pinecone";
|
|
@@ -307,7 +307,6 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
|
|
|
307
307
|
},
|
|
308
308
|
{ class: BedrockInstrumentation, name: "Bedrock", module: this.manualModules?.bedrock },
|
|
309
309
|
{ class: PineconeInstrumentation, name: "Pinecone", module: this.manualModules?.pinecone },
|
|
310
|
-
{ class: LangChainInstrumentation, name: "LangChain", module: this.manualModules?.langchain },
|
|
311
310
|
{
|
|
312
311
|
class: LlamaIndexInstrumentation,
|
|
313
312
|
name: "LlamaIndex",
|
|
@@ -330,6 +329,16 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
|
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
331
|
}
|
|
332
|
+
if (this.manualModules?.langchain?.callbackManagerModule) {
|
|
333
|
+
try {
|
|
334
|
+
const lcInst = new LangChainInstrumentation();
|
|
335
|
+
lcInst.manuallyInstrument(this.manualModules.langchain.callbackManagerModule);
|
|
336
|
+
instrumentations.push(lcInst);
|
|
337
|
+
logger.debug("Manual instrumentation enabled for LangChain");
|
|
338
|
+
} catch (error) {
|
|
339
|
+
logger.error(`Failed to load LangChain instrumentation: ${String(error)}`);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
333
342
|
}
|
|
334
343
|
};
|
|
335
344
|
|
|
@@ -343,7 +352,7 @@ import {
|
|
|
343
352
|
|
|
344
353
|
// src/internal/version.ts
|
|
345
354
|
function getSDKVersion() {
|
|
346
|
-
return "0.1.
|
|
355
|
+
return "0.1.13";
|
|
347
356
|
}
|
|
348
357
|
|
|
349
358
|
// src/internal/log/processors/log-processor.ts
|