@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 CHANGED
@@ -62,7 +62,6 @@ var import_instrumentation_anthropic = require("@traceloop/instrumentation-anthr
62
62
  var import_instrumentation_bedrock = require("@traceloop/instrumentation-bedrock");
63
63
  var import_instrumentation_chromadb = require("@traceloop/instrumentation-chromadb");
64
64
  var import_instrumentation_cohere = require("@traceloop/instrumentation-cohere");
65
- var import_instrumentation_langchain = require("@traceloop/instrumentation-langchain");
66
65
  var import_instrumentation_llamaindex = require("@traceloop/instrumentation-llamaindex");
67
66
  var import_instrumentation_openai = require("@traceloop/instrumentation-openai");
68
67
  var import_instrumentation_pinecone = require("@traceloop/instrumentation-pinecone");
@@ -238,7 +237,6 @@ function loadGenAIInstrumentations() {
238
237
  { class: import_instrumentation_vertexai.VertexAIInstrumentation, name: "Vertex AI" },
239
238
  { class: import_instrumentation_bedrock.BedrockInstrumentation, name: "Bedrock" },
240
239
  { class: import_instrumentation_pinecone.PineconeInstrumentation, name: "Pinecone" },
241
- { class: import_instrumentation_langchain.LangChainInstrumentation, name: "LangChain" },
242
240
  { class: import_instrumentation_llamaindex.LlamaIndexInstrumentation, name: "LlamaIndex" },
243
241
  { class: import_instrumentation_chromadb.ChromaDBInstrumentation, name: "ChromaDB" },
244
242
  { class: import_instrumentation_qdrant.QdrantInstrumentation, name: "Qdrant" },
@@ -370,11 +368,11 @@ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
370
368
  var SDK_LANGUAGE = "typescript";
371
369
 
372
370
  // src/internal/instrumentation/registry.ts
371
+ var import_openinference_instrumentation_langchain = require("@arizeai/openinference-instrumentation-langchain");
373
372
  var import_instrumentation_anthropic2 = require("@traceloop/instrumentation-anthropic");
374
373
  var import_instrumentation_bedrock2 = require("@traceloop/instrumentation-bedrock");
375
374
  var import_instrumentation_chromadb2 = require("@traceloop/instrumentation-chromadb");
376
375
  var import_instrumentation_cohere2 = require("@traceloop/instrumentation-cohere");
377
- var import_instrumentation_langchain2 = require("@traceloop/instrumentation-langchain");
378
376
  var import_instrumentation_llamaindex2 = require("@traceloop/instrumentation-llamaindex");
379
377
  var import_instrumentation_openai2 = require("@traceloop/instrumentation-openai");
380
378
  var import_instrumentation_pinecone2 = require("@traceloop/instrumentation-pinecone");
@@ -448,7 +446,6 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
448
446
  },
449
447
  { class: import_instrumentation_bedrock2.BedrockInstrumentation, name: "Bedrock", module: this.manualModules?.bedrock },
450
448
  { class: import_instrumentation_pinecone2.PineconeInstrumentation, name: "Pinecone", module: this.manualModules?.pinecone },
451
- { class: import_instrumentation_langchain2.LangChainInstrumentation, name: "LangChain", module: this.manualModules?.langchain },
452
449
  {
453
450
  class: import_instrumentation_llamaindex2.LlamaIndexInstrumentation,
454
451
  name: "LlamaIndex",
@@ -471,6 +468,16 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
471
468
  }
472
469
  }
473
470
  }
471
+ if (this.manualModules?.langchain?.callbackManagerModule) {
472
+ try {
473
+ const lcInst = new import_openinference_instrumentation_langchain.LangChainInstrumentation();
474
+ lcInst.manuallyInstrument(this.manualModules.langchain.callbackManagerModule);
475
+ instrumentations.push(lcInst);
476
+ logger.debug("Manual instrumentation enabled for LangChain");
477
+ } catch (error) {
478
+ logger.error(`Failed to load LangChain instrumentation: ${String(error)}`);
479
+ }
480
+ }
474
481
  }
475
482
  };
476
483
 
@@ -482,7 +489,7 @@ var import_sdk_logs2 = require("@opentelemetry/sdk-logs");
482
489
 
483
490
  // src/internal/version.ts
484
491
  function getSDKVersion() {
485
- return "0.1.11";
492
+ return "0.1.13";
486
493
  }
487
494
 
488
495
  // src/internal/log/processors/log-processor.ts