@brizz/sdk 0.1.12 → 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
@@ -481,52 +481,6 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
481
481
  }
482
482
  };
483
483
 
484
- // src/internal/instrumentation/langchain-instrumentation.ts
485
- var import_node_module = require("module");
486
- var import_node_url = require("url");
487
- var import_openinference_instrumentation_langchain2 = require("@arizeai/openinference-instrumentation-langchain");
488
- var initialized = false;
489
- async function importCallbackManager() {
490
- try {
491
- return await import("@langchain/core/callbacks/manager");
492
- } catch {
493
- }
494
- const resolvers = [
495
- () => (0, import_node_module.createRequire)((0, import_node_url.pathToFileURL)(process.cwd() + "/package.json").href),
496
- () => {
497
- const main = process.argv[1];
498
- if (!main) {
499
- throw new Error("no main");
500
- }
501
- return (0, import_node_module.createRequire)((0, import_node_url.pathToFileURL)(main).href);
502
- }
503
- ];
504
- for (const getRequire of resolvers) {
505
- try {
506
- const req = getRequire();
507
- const cjsPath = req.resolve("@langchain/core/callbacks/manager");
508
- const esmPath = cjsPath.replace(/\.cjs$/, ".js");
509
- return await import((0, import_node_url.pathToFileURL)(esmPath).href);
510
- } catch {
511
- }
512
- }
513
- return null;
514
- }
515
- async function setupLangChainInstrumentation() {
516
- if (initialized) {
517
- return;
518
- }
519
- const callbackManagerModule = await importCallbackManager();
520
- if (!callbackManagerModule) {
521
- logger.debug("@langchain/core not found \u2014 skipping LangChain instrumentation");
522
- return;
523
- }
524
- const instrumentation = new import_openinference_instrumentation_langchain2.LangChainInstrumentation();
525
- instrumentation.manuallyInstrument(callbackManagerModule);
526
- initialized = true;
527
- logger.info("LangChain instrumentation enabled (OpenInference)");
528
- }
529
-
530
484
  // src/internal/log/logging.ts
531
485
  var import_api_logs = require("@opentelemetry/api-logs");
532
486
  var import_exporter_logs_otlp_http = require("@opentelemetry/exporter-logs-otlp-http");
@@ -535,7 +489,7 @@ var import_sdk_logs2 = require("@opentelemetry/sdk-logs");
535
489
 
536
490
  // src/internal/version.ts
537
491
  function getSDKVersion() {
538
- return "0.1.12";
492
+ return "0.1.13";
539
493
  }
540
494
 
541
495
  // src/internal/log/processors/log-processor.ts
@@ -1913,7 +1867,6 @@ var _Brizz = class __Brizz {
1913
1867
  const resolvedConfig = resolveConfig(options);
1914
1868
  this.initializeModules(resolvedConfig);
1915
1869
  this.setupInstrumentation(options);
1916
- this.initLangChainInstrumentation();
1917
1870
  this.createAndStartNodeSDK(options, resolvedConfig);
1918
1871
  this._initialized = true;
1919
1872
  logger.info("Brizz SDK initialization completed successfully", {
@@ -1924,15 +1877,6 @@ var _Brizz = class __Brizz {
1924
1877
  throw new Error(`Failed to initialize SDK: ${String(error)}`, { cause: error });
1925
1878
  }
1926
1879
  }
1927
- /**
1928
- * Async LangChain instrumentation setup (fire-and-forget).
1929
- * @private
1930
- */
1931
- initLangChainInstrumentation() {
1932
- setupLangChainInstrumentation().catch((error) => {
1933
- logger.debug(`LangChain instrumentation skipped: ${String(error)}`);
1934
- });
1935
- }
1936
1880
  /**
1937
1881
  * Set up instrumentation registry and configure manual modules.
1938
1882
  * @private