@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/index.js
CHANGED
|
@@ -12,7 +12,6 @@ import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic";
|
|
|
12
12
|
import { BedrockInstrumentation } from "@traceloop/instrumentation-bedrock";
|
|
13
13
|
import { ChromaDBInstrumentation } from "@traceloop/instrumentation-chromadb";
|
|
14
14
|
import { CohereInstrumentation } from "@traceloop/instrumentation-cohere";
|
|
15
|
-
import { LangChainInstrumentation } from "@traceloop/instrumentation-langchain";
|
|
16
15
|
import { LlamaIndexInstrumentation } from "@traceloop/instrumentation-llamaindex";
|
|
17
16
|
import { OpenAIInstrumentation } from "@traceloop/instrumentation-openai";
|
|
18
17
|
import { PineconeInstrumentation } from "@traceloop/instrumentation-pinecone";
|
|
@@ -188,7 +187,6 @@ function loadGenAIInstrumentations() {
|
|
|
188
187
|
{ class: VertexAIInstrumentation, name: "Vertex AI" },
|
|
189
188
|
{ class: BedrockInstrumentation, name: "Bedrock" },
|
|
190
189
|
{ class: PineconeInstrumentation, name: "Pinecone" },
|
|
191
|
-
{ class: LangChainInstrumentation, name: "LangChain" },
|
|
192
190
|
{ class: LlamaIndexInstrumentation, name: "LlamaIndex" },
|
|
193
191
|
{ class: ChromaDBInstrumentation, name: "ChromaDB" },
|
|
194
192
|
{ class: QdrantInstrumentation, name: "Qdrant" },
|
|
@@ -320,11 +318,11 @@ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
|
|
|
320
318
|
var SDK_LANGUAGE = "typescript";
|
|
321
319
|
|
|
322
320
|
// src/internal/instrumentation/registry.ts
|
|
321
|
+
import { LangChainInstrumentation } from "@arizeai/openinference-instrumentation-langchain";
|
|
323
322
|
import { AnthropicInstrumentation as AnthropicInstrumentation2 } from "@traceloop/instrumentation-anthropic";
|
|
324
323
|
import { BedrockInstrumentation as BedrockInstrumentation2 } from "@traceloop/instrumentation-bedrock";
|
|
325
324
|
import { ChromaDBInstrumentation as ChromaDBInstrumentation2 } from "@traceloop/instrumentation-chromadb";
|
|
326
325
|
import { CohereInstrumentation as CohereInstrumentation2 } from "@traceloop/instrumentation-cohere";
|
|
327
|
-
import { LangChainInstrumentation as LangChainInstrumentation2 } from "@traceloop/instrumentation-langchain";
|
|
328
326
|
import { LlamaIndexInstrumentation as LlamaIndexInstrumentation2 } from "@traceloop/instrumentation-llamaindex";
|
|
329
327
|
import { OpenAIInstrumentation as OpenAIInstrumentation2 } from "@traceloop/instrumentation-openai";
|
|
330
328
|
import { PineconeInstrumentation as PineconeInstrumentation2 } from "@traceloop/instrumentation-pinecone";
|
|
@@ -398,7 +396,6 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
|
|
|
398
396
|
},
|
|
399
397
|
{ class: BedrockInstrumentation2, name: "Bedrock", module: this.manualModules?.bedrock },
|
|
400
398
|
{ class: PineconeInstrumentation2, name: "Pinecone", module: this.manualModules?.pinecone },
|
|
401
|
-
{ class: LangChainInstrumentation2, name: "LangChain", module: this.manualModules?.langchain },
|
|
402
399
|
{
|
|
403
400
|
class: LlamaIndexInstrumentation2,
|
|
404
401
|
name: "LlamaIndex",
|
|
@@ -421,6 +418,16 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
|
|
|
421
418
|
}
|
|
422
419
|
}
|
|
423
420
|
}
|
|
421
|
+
if (this.manualModules?.langchain?.callbackManagerModule) {
|
|
422
|
+
try {
|
|
423
|
+
const lcInst = new LangChainInstrumentation();
|
|
424
|
+
lcInst.manuallyInstrument(this.manualModules.langchain.callbackManagerModule);
|
|
425
|
+
instrumentations.push(lcInst);
|
|
426
|
+
logger.debug("Manual instrumentation enabled for LangChain");
|
|
427
|
+
} catch (error) {
|
|
428
|
+
logger.error(`Failed to load LangChain instrumentation: ${String(error)}`);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
424
431
|
}
|
|
425
432
|
};
|
|
426
433
|
|
|
@@ -434,7 +441,7 @@ import {
|
|
|
434
441
|
|
|
435
442
|
// src/internal/version.ts
|
|
436
443
|
function getSDKVersion() {
|
|
437
|
-
return "0.1.
|
|
444
|
+
return "0.1.13";
|
|
438
445
|
}
|
|
439
446
|
|
|
440
447
|
// src/internal/log/processors/log-processor.ts
|