@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/index.cjs +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/dist/preload.cjs +14 -10
- package/dist/preload.cjs.map +1 -1
- package/dist/preload.js +14 -10
- package/dist/preload.js.map +1 -1
- package/package.json +24 -22
package/dist/index.js
CHANGED
|
@@ -318,7 +318,6 @@ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
|
|
|
318
318
|
var SDK_LANGUAGE = "typescript";
|
|
319
319
|
|
|
320
320
|
// src/internal/instrumentation/registry.ts
|
|
321
|
-
import { LangChainInstrumentation } from "@arizeai/openinference-instrumentation-langchain";
|
|
322
321
|
import { AnthropicInstrumentation as AnthropicInstrumentation2 } from "@traceloop/instrumentation-anthropic";
|
|
323
322
|
import { BedrockInstrumentation as BedrockInstrumentation2 } from "@traceloop/instrumentation-bedrock";
|
|
324
323
|
import { ChromaDBInstrumentation as ChromaDBInstrumentation2 } from "@traceloop/instrumentation-chromadb";
|
|
@@ -419,14 +418,19 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
|
|
|
419
418
|
}
|
|
420
419
|
}
|
|
421
420
|
if (this.manualModules?.langchain?.callbackManagerModule) {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
421
|
+
const callbackManagerModule = this.manualModules.langchain.callbackManagerModule;
|
|
422
|
+
void (async () => {
|
|
423
|
+
try {
|
|
424
|
+
const { LangChainInstrumentation } = await import("@arizeai/openinference-instrumentation-langchain");
|
|
425
|
+
const lcInst = new LangChainInstrumentation();
|
|
426
|
+
lcInst.manuallyInstrument(callbackManagerModule);
|
|
427
|
+
logger.debug("Manual instrumentation enabled for LangChain");
|
|
428
|
+
} catch (error) {
|
|
429
|
+
logger.error(
|
|
430
|
+
`Failed to load LangChain instrumentation. Ensure @langchain/core is installed: ${String(error)}`
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
})();
|
|
430
434
|
}
|
|
431
435
|
}
|
|
432
436
|
};
|
|
@@ -441,7 +445,7 @@ import {
|
|
|
441
445
|
|
|
442
446
|
// src/internal/version.ts
|
|
443
447
|
function getSDKVersion() {
|
|
444
|
-
return "0.1.
|
|
448
|
+
return "0.1.14";
|
|
445
449
|
}
|
|
446
450
|
|
|
447
451
|
// src/internal/log/processors/log-processor.ts
|