@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.d.cts CHANGED
@@ -102,7 +102,6 @@ declare class _Brizz {
102
102
  private _sdk;
103
103
  static getInstance(): _Brizz;
104
104
  initialize(options: IBrizzInitializeOptions): void;
105
- private initLangChainInstrumentation;
106
105
  private setupInstrumentation;
107
106
  private createAndStartNodeSDK;
108
107
  private initializeModules;
package/dist/index.d.ts CHANGED
@@ -102,7 +102,6 @@ declare class _Brizz {
102
102
  private _sdk;
103
103
  static getInstance(): _Brizz;
104
104
  initialize(options: IBrizzInitializeOptions): void;
105
- private initLangChainInstrumentation;
106
105
  private setupInstrumentation;
107
106
  private createAndStartNodeSDK;
108
107
  private initializeModules;
package/dist/index.js CHANGED
@@ -431,52 +431,6 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
431
431
  }
432
432
  };
433
433
 
434
- // src/internal/instrumentation/langchain-instrumentation.ts
435
- import { createRequire } from "module";
436
- import { pathToFileURL } from "url";
437
- import { LangChainInstrumentation as LangChainInstrumentation2 } from "@arizeai/openinference-instrumentation-langchain";
438
- var initialized = false;
439
- async function importCallbackManager() {
440
- try {
441
- return await import("@langchain/core/callbacks/manager");
442
- } catch {
443
- }
444
- const resolvers = [
445
- () => createRequire(pathToFileURL(process.cwd() + "/package.json").href),
446
- () => {
447
- const main = process.argv[1];
448
- if (!main) {
449
- throw new Error("no main");
450
- }
451
- return createRequire(pathToFileURL(main).href);
452
- }
453
- ];
454
- for (const getRequire of resolvers) {
455
- try {
456
- const req = getRequire();
457
- const cjsPath = req.resolve("@langchain/core/callbacks/manager");
458
- const esmPath = cjsPath.replace(/\.cjs$/, ".js");
459
- return await import(pathToFileURL(esmPath).href);
460
- } catch {
461
- }
462
- }
463
- return null;
464
- }
465
- async function setupLangChainInstrumentation() {
466
- if (initialized) {
467
- return;
468
- }
469
- const callbackManagerModule = await importCallbackManager();
470
- if (!callbackManagerModule) {
471
- logger.debug("@langchain/core not found \u2014 skipping LangChain instrumentation");
472
- return;
473
- }
474
- const instrumentation = new LangChainInstrumentation2();
475
- instrumentation.manuallyInstrument(callbackManagerModule);
476
- initialized = true;
477
- logger.info("LangChain instrumentation enabled (OpenInference)");
478
- }
479
-
480
434
  // src/internal/log/logging.ts
481
435
  import { SeverityNumber } from "@opentelemetry/api-logs";
482
436
  import { OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-http";
@@ -487,7 +441,7 @@ import {
487
441
 
488
442
  // src/internal/version.ts
489
443
  function getSDKVersion() {
490
- return "0.1.12";
444
+ return "0.1.13";
491
445
  }
492
446
 
493
447
  // src/internal/log/processors/log-processor.ts
@@ -1868,7 +1822,6 @@ var _Brizz = class __Brizz {
1868
1822
  const resolvedConfig = resolveConfig(options);
1869
1823
  this.initializeModules(resolvedConfig);
1870
1824
  this.setupInstrumentation(options);
1871
- this.initLangChainInstrumentation();
1872
1825
  this.createAndStartNodeSDK(options, resolvedConfig);
1873
1826
  this._initialized = true;
1874
1827
  logger.info("Brizz SDK initialization completed successfully", {
@@ -1879,15 +1832,6 @@ var _Brizz = class __Brizz {
1879
1832
  throw new Error(`Failed to initialize SDK: ${String(error)}`, { cause: error });
1880
1833
  }
1881
1834
  }
1882
- /**
1883
- * Async LangChain instrumentation setup (fire-and-forget).
1884
- * @private
1885
- */
1886
- initLangChainInstrumentation() {
1887
- setupLangChainInstrumentation().catch((error) => {
1888
- logger.debug(`LangChain instrumentation skipped: ${String(error)}`);
1889
- });
1890
- }
1891
1835
  /**
1892
1836
  * Set up instrumentation registry and configure manual modules.
1893
1837
  * @private