@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.js CHANGED
@@ -229,7 +229,6 @@ 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";
233
232
  import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic";
234
233
  import { BedrockInstrumentation } from "@traceloop/instrumentation-bedrock";
235
234
  import { ChromaDBInstrumentation } from "@traceloop/instrumentation-chromadb";
@@ -330,14 +329,19 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
330
329
  }
331
330
  }
332
331
  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
- }
332
+ const callbackManagerModule = this.manualModules.langchain.callbackManagerModule;
333
+ void (async () => {
334
+ try {
335
+ const { LangChainInstrumentation } = await import("@arizeai/openinference-instrumentation-langchain");
336
+ const lcInst = new LangChainInstrumentation();
337
+ lcInst.manuallyInstrument(callbackManagerModule);
338
+ logger.debug("Manual instrumentation enabled for LangChain");
339
+ } catch (error) {
340
+ logger.error(
341
+ `Failed to load LangChain instrumentation. Ensure @langchain/core is installed: ${String(error)}`
342
+ );
343
+ }
344
+ })();
341
345
  }
342
346
  }
343
347
  };
@@ -352,7 +356,7 @@ import {
352
356
 
353
357
  // src/internal/version.ts
354
358
  function getSDKVersion() {
355
- return "0.1.13";
359
+ return "0.1.14";
356
360
  }
357
361
 
358
362
  // src/internal/log/processors/log-processor.ts