@brizz/sdk 0.1.13 → 0.1.15
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/README.md +20 -0
- package/dist/index.cjs +45 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +44 -32
- package/dist/index.js.map +1 -1
- package/dist/preload.cjs +15 -10
- package/dist/preload.cjs.map +1 -1
- package/dist/preload.js +15 -10
- package/dist/preload.js.map +1 -1
- package/package.json +31 -29
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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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.
|
|
359
|
+
return "0.1.15";
|
|
356
360
|
}
|
|
357
361
|
|
|
358
362
|
// src/internal/log/processors/log-processor.ts
|
|
@@ -988,6 +992,7 @@ import { createContextKey } from "@opentelemetry/api";
|
|
|
988
992
|
var BRIZZ = "brizz";
|
|
989
993
|
var PROPERTIES = "properties";
|
|
990
994
|
var PROPERTIES_CONTEXT_KEY = createContextKey(PROPERTIES);
|
|
995
|
+
var SESSION_OBJECT_CONTEXT_KEY = createContextKey("brizz.session.object");
|
|
991
996
|
|
|
992
997
|
// src/internal/log/processors/log-processor.ts
|
|
993
998
|
var DEFAULT_LOG_MASKING_RULES = [
|