@brizz/sdk 0.1.13 → 0.1.14

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/preload.cjs CHANGED
@@ -246,7 +246,6 @@ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
246
246
  var SDK_LANGUAGE = "typescript";
247
247
 
248
248
  // src/internal/instrumentation/registry.ts
249
- var import_openinference_instrumentation_langchain = require("@arizeai/openinference-instrumentation-langchain");
250
249
  var import_instrumentation_anthropic = require("@traceloop/instrumentation-anthropic");
251
250
  var import_instrumentation_bedrock = require("@traceloop/instrumentation-bedrock");
252
251
  var import_instrumentation_chromadb = require("@traceloop/instrumentation-chromadb");
@@ -347,14 +346,19 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
347
346
  }
348
347
  }
349
348
  if (this.manualModules?.langchain?.callbackManagerModule) {
350
- try {
351
- const lcInst = new import_openinference_instrumentation_langchain.LangChainInstrumentation();
352
- lcInst.manuallyInstrument(this.manualModules.langchain.callbackManagerModule);
353
- instrumentations.push(lcInst);
354
- logger.debug("Manual instrumentation enabled for LangChain");
355
- } catch (error) {
356
- logger.error(`Failed to load LangChain instrumentation: ${String(error)}`);
357
- }
349
+ const callbackManagerModule = this.manualModules.langchain.callbackManagerModule;
350
+ void (async () => {
351
+ try {
352
+ const { LangChainInstrumentation } = await import("@arizeai/openinference-instrumentation-langchain");
353
+ const lcInst = new LangChainInstrumentation();
354
+ lcInst.manuallyInstrument(callbackManagerModule);
355
+ logger.debug("Manual instrumentation enabled for LangChain");
356
+ } catch (error) {
357
+ logger.error(
358
+ `Failed to load LangChain instrumentation. Ensure @langchain/core is installed: ${String(error)}`
359
+ );
360
+ }
361
+ })();
358
362
  }
359
363
  }
360
364
  };
@@ -367,7 +371,7 @@ var import_sdk_logs2 = require("@opentelemetry/sdk-logs");
367
371
 
368
372
  // src/internal/version.ts
369
373
  function getSDKVersion() {
370
- return "0.1.13";
374
+ return "0.1.14";
371
375
  }
372
376
 
373
377
  // src/internal/log/processors/log-processor.ts