@brizz/sdk 0.1.35 → 0.1.37

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.
@@ -1,6 +1,6 @@
1
1
  // src/internal/version.ts
2
2
  function getSDKVersion() {
3
- return "0.1.35";
3
+ return "0.1.37";
4
4
  }
5
5
 
6
6
  export {
@@ -12,6 +12,7 @@ var SESSION_OUTPUT_CONTEXT = "brizz.session.output.context";
12
12
  var SESSION_SPAN_NAME = "brizz.start_session";
13
13
  var MUTE_INPUT = "mute.input";
14
14
  var MUTE_OUTPUT = "mute.output";
15
+ var MUTE_TOOLS = "mute.tools";
15
16
  var USER_ID = "user.id";
16
17
  var USER_EMAIL = "user.email";
17
18
  var USER_NAME = "user.name";
@@ -75,6 +76,7 @@ export {
75
76
  SESSION_SPAN_NAME,
76
77
  MUTE_INPUT,
77
78
  MUTE_OUTPUT,
79
+ MUTE_TOOLS,
78
80
  USER_ID,
79
81
  USER_EMAIL,
80
82
  USER_NAME,
package/dist/index.cjs CHANGED
@@ -34,27 +34,27 @@
34
34
 
35
35
 
36
36
 
37
- var _chunkD27LNW3Mcjs = require('./chunk-D27LNW3M.cjs');
37
+ var _chunkO5DVPC42cjs = require('./chunk-O5DVPC42.cjs');
38
38
  require('./chunk-UNLNNKZ7.cjs');
39
- require('./chunk-HZOBDXDS.cjs');
39
+ require('./chunk-2DSTZTDA.cjs');
40
40
 
41
41
 
42
42
 
43
43
 
44
44
 
45
45
  var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
46
- require('./chunk-M3UGFLH7.cjs');
47
- require('./chunk-NEF2O7HF.cjs');
46
+ require('./chunk-EVRCHF74.cjs');
47
+ require('./chunk-77UGZGMP.cjs');
48
48
  require('./chunk-OBGZSXTJ.cjs');
49
49
 
50
50
  // src/internal/instrumentation/auto-init.ts
51
+ var _openinferenceinstrumentationopenai = require('@arizeai/openinference-instrumentation-openai');
51
52
  var _instrumentation = require('@opentelemetry/instrumentation');
52
53
  var _instrumentationanthropic = require('@traceloop/instrumentation-anthropic');
53
54
  var _instrumentationbedrock = require('@traceloop/instrumentation-bedrock');
54
55
  var _instrumentationchromadb = require('@traceloop/instrumentation-chromadb');
55
56
  var _instrumentationcohere = require('@traceloop/instrumentation-cohere');
56
57
  var _instrumentationllamaindex = require('@traceloop/instrumentation-llamaindex');
57
- var _instrumentationopenai = require('@traceloop/instrumentation-openai');
58
58
  var _instrumentationpinecone = require('@traceloop/instrumentation-pinecone');
59
59
  var _instrumentationqdrant = require('@traceloop/instrumentation-qdrant');
60
60
  var _instrumentationtogether = require('@traceloop/instrumentation-together');
@@ -63,8 +63,13 @@ var exceptionLogger = (error) => {
63
63
  };
64
64
  function loadGenAIInstrumentations() {
65
65
  const instrumentations = [];
66
+ try {
67
+ instrumentations.push(new (0, _openinferenceinstrumentationopenai.OpenAIInstrumentation)());
68
+ _chunkWC573FCIcjs.logger.debug("Auto-loaded OpenAI instrumentation");
69
+ } catch (error) {
70
+ _chunkWC573FCIcjs.logger.error(`Failed to auto-load OpenAI instrumentation: ${String(error)}`);
71
+ }
66
72
  const genAIInstrumentationClasses = [
67
- { class: _instrumentationopenai.OpenAIInstrumentation, name: "OpenAI" },
68
73
  { class: _instrumentationanthropic.AnthropicInstrumentation, name: "Anthropic" },
69
74
  { class: _instrumentationcohere.CohereInstrumentation, name: "Cohere" },
70
75
  { class: _instrumentationbedrock.BedrockInstrumentation, name: "Bedrock" },
@@ -94,7 +99,7 @@ function loadGenAIInstrumentations() {
94
99
  function loadMCPInstrumentation() {
95
100
  void (async () => {
96
101
  try {
97
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-KAYXU4AU.cjs")));
102
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-NC5OXRT4.cjs")));
98
103
  const mcp = new MCPInstrumentation({ exceptionLogger });
99
104
  _instrumentation.registerInstrumentations.call(void 0, { instrumentations: [mcp] });
100
105
  _chunkWC573FCIcjs.logger.debug("Auto-loaded MCP instrumentation");
@@ -150,7 +155,7 @@ function loadVercelAITelemetry() {
150
155
  }
151
156
  const isV7 = typeof ai.registerTelemetry === "function";
152
157
  const integrations = [];
153
- const { createInterruptIntegration } = await Promise.resolve().then(() => _interopRequireWildcard(require("./interrupt-7MWQCOY3.cjs")));
158
+ const { createInterruptIntegration } = await Promise.resolve().then(() => _interopRequireWildcard(require("./interrupt-DM3AWSBX.cjs")));
154
159
  integrations.push(createInterruptIntegration());
155
160
  let otelCollectorLoaded = false;
156
161
  try {
@@ -243,4 +248,4 @@ var init_exports = {};
243
248
 
244
249
 
245
250
 
246
- exports.Brizz = _chunkD27LNW3Mcjs.Brizz; exports.DEFAULT_PII_PATTERNS = _chunkD27LNW3Mcjs.DEFAULT_PII_PATTERNS; exports.LogLevel = _chunkWC573FCIcjs.LogLevel; exports.Session = _chunkD27LNW3Mcjs.Session; exports.SessionTitle = _chunkD27LNW3Mcjs.SessionTitle; exports.SeverityNumber = _apilogs.SeverityNumber; exports.addExternalLink = _chunkD27LNW3Mcjs.addExternalLink; exports.callWithMessageId = _chunkD27LNW3Mcjs.callWithMessageId; exports.callWithMute = _chunkD27LNW3Mcjs.callWithMute; exports.callWithOrganization = _chunkD27LNW3Mcjs.callWithOrganization; exports.callWithProperties = _chunkD27LNW3Mcjs.callWithProperties; exports.callWithSessionId = _chunkD27LNW3Mcjs.callWithSessionId; exports.callWithUser = _chunkD27LNW3Mcjs.callWithUser; exports.detectRuntime = _chunkD27LNW3Mcjs.detectRuntime; exports.emitEvent = _chunkD27LNW3Mcjs.emitEvent; exports.emitEventWithSessionId = _chunkD27LNW3Mcjs.emitEventWithSessionId; exports.getActiveSession = _chunkD27LNW3Mcjs.getActiveSession; exports.getLogLevel = _chunkWC573FCIcjs.getLogLevel; exports.getMetricsExporter = _chunkD27LNW3Mcjs.getMetricsExporter; exports.getMetricsReader = _chunkD27LNW3Mcjs.getMetricsReader; exports.getSpanExporter = _chunkD27LNW3Mcjs.getSpanExporter; exports.getSpanProcessor = _chunkD27LNW3Mcjs.getSpanProcessor; exports.init = init_exports; exports.logger = _chunkWC573FCIcjs.logger; exports.maskAttributes = _chunkD27LNW3Mcjs.maskAttributes; exports.maskValue = _chunkD27LNW3Mcjs.maskValue; exports.recordFeedback = _chunkD27LNW3Mcjs.recordFeedback; exports.recordMetric = _chunkD27LNW3Mcjs.recordMetric; exports.setCurrentSpanCustomProperties = _chunkD27LNW3Mcjs.setCurrentSpanCustomProperties; exports.setLogLevel = _chunkWC573FCIcjs.setLogLevel; exports.setMessageId = _chunkD27LNW3Mcjs.setMessageId; exports.setOrganization = _chunkD27LNW3Mcjs.setOrganization; exports.setUser = _chunkD27LNW3Mcjs.setUser; exports.startSession = _chunkD27LNW3Mcjs.startSession; exports.startSessionTitle = _chunkD27LNW3Mcjs.startSessionTitle; exports.withMessageId = _chunkD27LNW3Mcjs.withMessageId; exports.withMute = _chunkD27LNW3Mcjs.withMute; exports.withOrganization = _chunkD27LNW3Mcjs.withOrganization; exports.withProperties = _chunkD27LNW3Mcjs.withProperties; exports.withSessionId = _chunkD27LNW3Mcjs.withSessionId; exports.withUser = _chunkD27LNW3Mcjs.withUser;
251
+ exports.Brizz = _chunkO5DVPC42cjs.Brizz; exports.DEFAULT_PII_PATTERNS = _chunkO5DVPC42cjs.DEFAULT_PII_PATTERNS; exports.LogLevel = _chunkWC573FCIcjs.LogLevel; exports.Session = _chunkO5DVPC42cjs.Session; exports.SessionTitle = _chunkO5DVPC42cjs.SessionTitle; exports.SeverityNumber = _apilogs.SeverityNumber; exports.addExternalLink = _chunkO5DVPC42cjs.addExternalLink; exports.callWithMessageId = _chunkO5DVPC42cjs.callWithMessageId; exports.callWithMute = _chunkO5DVPC42cjs.callWithMute; exports.callWithOrganization = _chunkO5DVPC42cjs.callWithOrganization; exports.callWithProperties = _chunkO5DVPC42cjs.callWithProperties; exports.callWithSessionId = _chunkO5DVPC42cjs.callWithSessionId; exports.callWithUser = _chunkO5DVPC42cjs.callWithUser; exports.detectRuntime = _chunkO5DVPC42cjs.detectRuntime; exports.emitEvent = _chunkO5DVPC42cjs.emitEvent; exports.emitEventWithSessionId = _chunkO5DVPC42cjs.emitEventWithSessionId; exports.getActiveSession = _chunkO5DVPC42cjs.getActiveSession; exports.getLogLevel = _chunkWC573FCIcjs.getLogLevel; exports.getMetricsExporter = _chunkO5DVPC42cjs.getMetricsExporter; exports.getMetricsReader = _chunkO5DVPC42cjs.getMetricsReader; exports.getSpanExporter = _chunkO5DVPC42cjs.getSpanExporter; exports.getSpanProcessor = _chunkO5DVPC42cjs.getSpanProcessor; exports.init = init_exports; exports.logger = _chunkWC573FCIcjs.logger; exports.maskAttributes = _chunkO5DVPC42cjs.maskAttributes; exports.maskValue = _chunkO5DVPC42cjs.maskValue; exports.recordFeedback = _chunkO5DVPC42cjs.recordFeedback; exports.recordMetric = _chunkO5DVPC42cjs.recordMetric; exports.setCurrentSpanCustomProperties = _chunkO5DVPC42cjs.setCurrentSpanCustomProperties; exports.setLogLevel = _chunkWC573FCIcjs.setLogLevel; exports.setMessageId = _chunkO5DVPC42cjs.setMessageId; exports.setOrganization = _chunkO5DVPC42cjs.setOrganization; exports.setUser = _chunkO5DVPC42cjs.setUser; exports.startSession = _chunkO5DVPC42cjs.startSession; exports.startSessionTitle = _chunkO5DVPC42cjs.startSessionTitle; exports.withMessageId = _chunkO5DVPC42cjs.withMessageId; exports.withMute = _chunkO5DVPC42cjs.withMute; exports.withOrganization = _chunkO5DVPC42cjs.withOrganization; exports.withProperties = _chunkO5DVPC42cjs.withProperties; exports.withSessionId = _chunkO5DVPC42cjs.withSessionId; exports.withUser = _chunkO5DVPC42cjs.withUser;
package/dist/index.d.cts CHANGED
@@ -195,6 +195,7 @@ declare function withMessageId<F extends (this: any, ...args: any[]) => any>(id:
195
195
  interface IMuteOptions {
196
196
  input?: boolean;
197
197
  output?: boolean;
198
+ tools?: boolean;
198
199
  }
199
200
  declare function callWithMute<A extends unknown[], F extends (...args: A) => ReturnType<F>>(options: IMuteOptions, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
200
201
  declare function withMute<F extends (this: any, ...args: any[]) => any>(options: IMuteOptions, fn: F, thisArg?: ThisParameterType<F>): F;
package/dist/index.d.ts CHANGED
@@ -195,6 +195,7 @@ declare function withMessageId<F extends (this: any, ...args: any[]) => any>(id:
195
195
  interface IMuteOptions {
196
196
  input?: boolean;
197
197
  output?: boolean;
198
+ tools?: boolean;
198
199
  }
199
200
  declare function callWithMute<A extends unknown[], F extends (...args: A) => ReturnType<F>>(options: IMuteOptions, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
200
201
  declare function withMute<F extends (this: any, ...args: any[]) => any>(options: IMuteOptions, fn: F, thisArg?: ThisParameterType<F>): F;
package/dist/index.js CHANGED
@@ -34,27 +34,27 @@ import {
34
34
  withProperties,
35
35
  withSessionId,
36
36
  withUser
37
- } from "./chunk-KP3KG66W.js";
37
+ } from "./chunk-4Q2CRWI6.js";
38
38
  import "./chunk-7SUF4VVI.js";
39
- import "./chunk-GSKXPOLQ.js";
39
+ import "./chunk-OR3YPY4I.js";
40
40
  import {
41
41
  LogLevel,
42
42
  getLogLevel,
43
43
  logger,
44
44
  setLogLevel
45
45
  } from "./chunk-Y4HNUX3Q.js";
46
- import "./chunk-24CEDVD2.js";
47
- import "./chunk-QY4VADPP.js";
46
+ import "./chunk-EC3MYSRM.js";
47
+ import "./chunk-WII4R5RE.js";
48
48
  import "./chunk-3RG5ZIWI.js";
49
49
 
50
50
  // src/internal/instrumentation/auto-init.ts
51
+ import { OpenAIInstrumentation } from "@arizeai/openinference-instrumentation-openai";
51
52
  import { registerInstrumentations } from "@opentelemetry/instrumentation";
52
53
  import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic";
53
54
  import { BedrockInstrumentation } from "@traceloop/instrumentation-bedrock";
54
55
  import { ChromaDBInstrumentation } from "@traceloop/instrumentation-chromadb";
55
56
  import { CohereInstrumentation } from "@traceloop/instrumentation-cohere";
56
57
  import { LlamaIndexInstrumentation } from "@traceloop/instrumentation-llamaindex";
57
- import { OpenAIInstrumentation } from "@traceloop/instrumentation-openai";
58
58
  import { PineconeInstrumentation } from "@traceloop/instrumentation-pinecone";
59
59
  import { QdrantInstrumentation } from "@traceloop/instrumentation-qdrant";
60
60
  import { TogetherInstrumentation } from "@traceloop/instrumentation-together";
@@ -63,8 +63,13 @@ var exceptionLogger = (error) => {
63
63
  };
64
64
  function loadGenAIInstrumentations() {
65
65
  const instrumentations = [];
66
+ try {
67
+ instrumentations.push(new OpenAIInstrumentation());
68
+ logger.debug("Auto-loaded OpenAI instrumentation");
69
+ } catch (error) {
70
+ logger.error(`Failed to auto-load OpenAI instrumentation: ${String(error)}`);
71
+ }
66
72
  const genAIInstrumentationClasses = [
67
- { class: OpenAIInstrumentation, name: "OpenAI" },
68
73
  { class: AnthropicInstrumentation, name: "Anthropic" },
69
74
  { class: CohereInstrumentation, name: "Cohere" },
70
75
  { class: BedrockInstrumentation, name: "Bedrock" },
@@ -94,7 +99,7 @@ function loadGenAIInstrumentations() {
94
99
  function loadMCPInstrumentation() {
95
100
  void (async () => {
96
101
  try {
97
- const { MCPInstrumentation } = await import("./mcp-EJNZYON6.js");
102
+ const { MCPInstrumentation } = await import("./mcp-7Y3O5QSS.js");
98
103
  const mcp = new MCPInstrumentation({ exceptionLogger });
99
104
  registerInstrumentations({ instrumentations: [mcp] });
100
105
  logger.debug("Auto-loaded MCP instrumentation");
@@ -150,7 +155,7 @@ function loadVercelAITelemetry() {
150
155
  }
151
156
  const isV7 = typeof ai.registerTelemetry === "function";
152
157
  const integrations = [];
153
- const { createInterruptIntegration } = await import("./interrupt-KADNA6WK.js");
158
+ const { createInterruptIntegration } = await import("./interrupt-YJVZK4VC.js");
154
159
  integrations.push(createInterruptIntegration());
155
160
  let otelCollectorLoaded = false;
156
161
  try {
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkEVRCHF74cjs = require('./chunk-EVRCHF74.cjs');
6
+ require('./chunk-77UGZGMP.cjs');
7
+ require('./chunk-OBGZSXTJ.cjs');
8
+
9
+
10
+
11
+
12
+ exports.InterruptPropagator = _chunkEVRCHF74cjs.InterruptPropagator; exports._resetInterruptState = _chunkEVRCHF74cjs._resetInterruptState; exports.createInterruptIntegration = _chunkEVRCHF74cjs.createInterruptIntegration;
@@ -2,8 +2,8 @@ import {
2
2
  InterruptPropagator,
3
3
  _resetInterruptState,
4
4
  createInterruptIntegration
5
- } from "./chunk-24CEDVD2.js";
6
- import "./chunk-QY4VADPP.js";
5
+ } from "./chunk-EC3MYSRM.js";
6
+ import "./chunk-WII4R5RE.js";
7
7
  import "./chunk-3RG5ZIWI.js";
8
8
  export {
9
9
  InterruptPropagator,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getSDKVersion
3
- } from "./chunk-GSKXPOLQ.js";
3
+ } from "./chunk-OR3YPY4I.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-Y4HNUX3Q.js";
@@ -8,7 +8,7 @@ import {
8
8
  BRIZZ,
9
9
  PROPERTIES_CONTEXT_KEY,
10
10
  SESSION_ID
11
- } from "./chunk-QY4VADPP.js";
11
+ } from "./chunk-WII4R5RE.js";
12
12
  import "./chunk-3RG5ZIWI.js";
13
13
 
14
14
  // src/internal/instrumentation/mcp/instrumentation.ts
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkHZOBDXDScjs = require('./chunk-HZOBDXDS.cjs');
3
+ var _chunk2DSTZTDAcjs = require('./chunk-2DSTZTDA.cjs');
4
4
 
5
5
 
6
6
  var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
@@ -8,7 +8,7 @@ var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkNEF2O7HFcjs = require('./chunk-NEF2O7HF.cjs');
11
+ var _chunk77UGZGMPcjs = require('./chunk-77UGZGMP.cjs');
12
12
  require('./chunk-OBGZSXTJ.cjs');
13
13
 
14
14
  // src/internal/instrumentation/mcp/instrumentation.ts
@@ -139,7 +139,7 @@ function stampAndPropagateSession(span, sessionId, baseContext = _api.context.ac
139
139
  }
140
140
  if (span.isRecording()) {
141
141
  try {
142
- span.setAttribute(`${_chunkNEF2O7HFcjs.BRIZZ}.${_chunkNEF2O7HFcjs.SESSION_ID}`, sessionId);
142
+ span.setAttribute(`${_chunk77UGZGMPcjs.BRIZZ}.${_chunk77UGZGMPcjs.SESSION_ID}`, sessionId);
143
143
  } catch (error) {
144
144
  _chunkWC573FCIcjs.logger.warn(
145
145
  `Brizz MCP: failed to stamp session id on span: ${String(error)}`
@@ -147,10 +147,10 @@ function stampAndPropagateSession(span, sessionId, baseContext = _api.context.ac
147
147
  }
148
148
  }
149
149
  try {
150
- const prev = baseContext.getValue(_chunkNEF2O7HFcjs.PROPERTIES_CONTEXT_KEY);
151
- const merged = prev ? { ...prev, [_chunkNEF2O7HFcjs.SESSION_ID]: sessionId } : { [_chunkNEF2O7HFcjs.SESSION_ID]: sessionId };
150
+ const prev = baseContext.getValue(_chunk77UGZGMPcjs.PROPERTIES_CONTEXT_KEY);
151
+ const merged = prev ? { ...prev, [_chunk77UGZGMPcjs.SESSION_ID]: sessionId } : { [_chunk77UGZGMPcjs.SESSION_ID]: sessionId };
152
152
  return {
153
- context: baseContext.setValue(_chunkNEF2O7HFcjs.PROPERTIES_CONTEXT_KEY, merged),
153
+ context: baseContext.setValue(_chunk77UGZGMPcjs.PROPERTIES_CONTEXT_KEY, merged),
154
154
  sessionId
155
155
  };
156
156
  } catch (error) {
@@ -570,7 +570,7 @@ function safeEnd(span) {
570
570
 
571
571
  // src/internal/instrumentation/mcp/version.ts
572
572
  var INSTRUMENTATION_NAME = "@brizz/sdk/mcp";
573
- var INSTRUMENTATION_VERSION = _chunkHZOBDXDScjs.getSDKVersion.call(void 0, );
573
+ var INSTRUMENTATION_VERSION = _chunk2DSTZTDAcjs.getSDKVersion.call(void 0, );
574
574
 
575
575
  // src/internal/instrumentation/mcp/instrumentation.ts
576
576
  var PROTOCOL_MODULE_NAME = "@modelcontextprotocol/sdk/shared/protocol.js";
package/dist/preload.cjs CHANGED
@@ -1,15 +1,15 @@
1
1
  "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunkD27LNW3Mcjs = require('./chunk-D27LNW3M.cjs');
4
+ var _chunkO5DVPC42cjs = require('./chunk-O5DVPC42.cjs');
5
5
  require('./chunk-UNLNNKZ7.cjs');
6
- require('./chunk-HZOBDXDS.cjs');
6
+ require('./chunk-2DSTZTDA.cjs');
7
7
 
8
8
 
9
9
 
10
10
  var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
11
- require('./chunk-M3UGFLH7.cjs');
12
- require('./chunk-NEF2O7HF.cjs');
11
+ require('./chunk-EVRCHF74.cjs');
12
+ require('./chunk-77UGZGMP.cjs');
13
13
  require('./chunk-OBGZSXTJ.cjs');
14
14
 
15
15
  // src/node/loader.ts
@@ -96,16 +96,16 @@ if (globalThis[LOADER_REGISTERED_KEY] !== true) {
96
96
  }
97
97
 
98
98
  // src/preload.ts
99
- var runtime = _chunkD27LNW3Mcjs.detectRuntime.call(void 0, );
99
+ var runtime = _chunkO5DVPC42cjs.detectRuntime.call(void 0, );
100
100
  if (runtime.isESM && runtime.supportsLoaderAPI) {
101
101
  maybeRegisterESMLoader();
102
102
  }
103
103
  try {
104
104
  const logLevel = process.env["BRIZZ_LOG_LEVEL"] || _chunkWC573FCIcjs.DEFAULT_LOG_LEVEL.toString();
105
105
  if (process.env["BRIZZ_DSN"]) {
106
- _chunkD27LNW3Mcjs.Brizz.initialize({ logLevel, disableNodeSdk: false });
106
+ _chunkO5DVPC42cjs.Brizz.initialize({ logLevel, disableNodeSdk: false });
107
107
  } else {
108
- _chunkD27LNW3Mcjs.Brizz.initialize({
108
+ _chunkO5DVPC42cjs.Brizz.initialize({
109
109
  apiKey: process.env["BRIZZ_API_KEY"],
110
110
  baseUrl: process.env["BRIZZ_BASE_URL"],
111
111
  appName: process.env["BRIZZ_APP_NAME"] || process.env["OTEL_SERVICE_NAME"],
package/dist/preload.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  Brizz,
3
3
  detectRuntime
4
- } from "./chunk-KP3KG66W.js";
4
+ } from "./chunk-4Q2CRWI6.js";
5
5
  import "./chunk-7SUF4VVI.js";
6
- import "./chunk-GSKXPOLQ.js";
6
+ import "./chunk-OR3YPY4I.js";
7
7
  import {
8
8
  DEFAULT_LOG_LEVEL,
9
9
  logger
10
10
  } from "./chunk-Y4HNUX3Q.js";
11
- import "./chunk-24CEDVD2.js";
12
- import "./chunk-QY4VADPP.js";
11
+ import "./chunk-EC3MYSRM.js";
12
+ import "./chunk-WII4R5RE.js";
13
13
  import "./chunk-3RG5ZIWI.js";
14
14
 
15
15
  // src/node/loader.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brizz/sdk",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "description": "OpenTelemetry-based observability SDK for AI applications",
6
6
  "keywords": [
@@ -106,22 +106,22 @@
106
106
  "registry": "https://registry.npmjs.org/"
107
107
  },
108
108
  "devDependencies": {
109
- "@ai-sdk/anthropic": "^4.0.12",
110
- "@ai-sdk/openai": "^4.0.11",
111
- "@ai-sdk/otel": "^1.0.22",
109
+ "@ai-sdk/anthropic": "^4.0.16",
110
+ "@ai-sdk/openai": "^4.0.16",
111
+ "@ai-sdk/otel": "^1.0.31",
112
112
  "@arizeai/openinference-instrumentation-mcp": "^0.2.20",
113
113
  "@changesets/changelog-github": "^0.7.0",
114
- "@changesets/cli": "^2.30.0",
114
+ "@changesets/cli": "^2.31.1",
115
115
  "@eslint/js": "^10.0.1",
116
- "@google/genai": "^2.11.0",
116
+ "@google/genai": "^2.12.0",
117
117
  "@modelcontextprotocol/sdk": "^1.29.0",
118
118
  "@traceloop/instrumentation-google-generativeai": "^0.27.0",
119
119
  "@traceloop/instrumentation-vertexai": "^0.27.0",
120
120
  "@types/jest": "^30.0.0",
121
121
  "@types/node": "^26.1.1",
122
- "@typescript-eslint/eslint-plugin": "^8.63.0",
123
- "@typescript-eslint/parser": "^8.63.0",
124
- "ai": "^7.0.22",
122
+ "@typescript-eslint/eslint-plugin": "^8.64.0",
123
+ "@typescript-eslint/parser": "^8.64.0",
124
+ "ai": "^7.0.31",
125
125
  "eslint": "^10.7.0",
126
126
  "eslint-config-prettier": "^10.1.8",
127
127
  "eslint-plugin-import": "^2.32.0",
@@ -129,7 +129,7 @@
129
129
  "eslint-plugin-unicorn": "^71.1.0",
130
130
  "jest": "^30.4.2",
131
131
  "jest-environment-jsdom": "^30.4.1",
132
- "openai": "^6.46.0",
132
+ "openai": "^6.48.0",
133
133
  "prettier": "^3.9.5",
134
134
  "ts-jest": "^29.4.11",
135
135
  "tsup": "^8.5.1",
@@ -176,6 +176,7 @@
176
176
  },
177
177
  "dependencies": {
178
178
  "@arizeai/openinference-instrumentation-langchain": "^4.0.14",
179
+ "@arizeai/openinference-instrumentation-openai": "^2.3.1",
179
180
  "@opentelemetry/api": "^1.9.0",
180
181
  "@opentelemetry/api-logs": "^0.220.0",
181
182
  "@opentelemetry/core": "^2.9.0",
@@ -196,7 +197,6 @@
196
197
  "@traceloop/instrumentation-chromadb": "^0.27.0",
197
198
  "@traceloop/instrumentation-cohere": "^0.27.0",
198
199
  "@traceloop/instrumentation-llamaindex": "^0.27.0",
199
- "@traceloop/instrumentation-openai": "^0.27.0",
200
200
  "@traceloop/instrumentation-pinecone": "^0.27.0",
201
201
  "@traceloop/instrumentation-qdrant": "^0.27.0",
202
202
  "@traceloop/instrumentation-together": "^0.27.0",
@@ -1,12 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
- var _chunkM3UGFLH7cjs = require('./chunk-M3UGFLH7.cjs');
6
- require('./chunk-NEF2O7HF.cjs');
7
- require('./chunk-OBGZSXTJ.cjs');
8
-
9
-
10
-
11
-
12
- exports.InterruptPropagator = _chunkM3UGFLH7cjs.InterruptPropagator; exports._resetInterruptState = _chunkM3UGFLH7cjs._resetInterruptState; exports.createInterruptIntegration = _chunkM3UGFLH7cjs.createInterruptIntegration;