@brizz/sdk 0.1.33 → 0.1.34

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.33";
3
+ return "0.1.34";
4
4
  }
5
5
 
6
6
  export {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7SUF4VVI.js";
5
5
  import {
6
6
  getSDKVersion
7
- } from "./chunk-PY6FJBVY.js";
7
+ } from "./chunk-64STNQKL.js";
8
8
  import {
9
9
  DEFAULT_LOG_LEVEL,
10
10
  logger,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-Y4HNUX3Q.js";
14
14
  import {
15
15
  InterruptPropagator
16
- } from "./chunk-N4X2B6BC.js";
16
+ } from "./chunk-24CEDVD2.js";
17
17
  import {
18
18
  BRIZZ,
19
19
  EXTERNAL_LINK_EVENT_NAME,
@@ -29,6 +29,18 @@ import {
29
29
  FEEDBACK_TYPE,
30
30
  INTERNAL_EVENT_PREFIX,
31
31
  MESSAGE_ID,
32
+ METRIC_ATTRIBUTE_PREFIX,
33
+ METRIC_COMMENT,
34
+ METRIC_EVENT_NAME,
35
+ METRIC_MAX,
36
+ METRIC_MIN,
37
+ METRIC_NAME,
38
+ METRIC_POLARITY,
39
+ METRIC_POLARITY_NEGATIVE,
40
+ METRIC_POLARITY_POSITIVE,
41
+ METRIC_TIMESTAMP,
42
+ METRIC_UNIT,
43
+ METRIC_VALUE,
32
44
  MUTE_INPUT,
33
45
  MUTE_OUTPUT,
34
46
  ORGANIZATION_DOMAIN,
@@ -36,6 +48,7 @@ import {
36
48
  ORGANIZATION_NAME,
37
49
  ORGANIZATION_PLAN,
38
50
  PROPERTIES_CONTEXT_KEY,
51
+ RESERVED_METRIC_NAMES,
39
52
  SESSION_ID,
40
53
  SESSION_INPUT,
41
54
  SESSION_INPUT_CONTEXT,
@@ -51,7 +64,7 @@ import {
51
64
  USER_NAME,
52
65
  USER_PLAN,
53
66
  USER_ROLE
54
- } from "./chunk-GRRKMMG6.js";
67
+ } from "./chunk-QY4VADPP.js";
55
68
  import {
56
69
  __require
57
70
  } from "./chunk-3RG5ZIWI.js";
@@ -161,7 +174,7 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
161
174
  const mcpModules = this.manualModules.mcp;
162
175
  void (async () => {
163
176
  try {
164
- const { MCPInstrumentation } = await import("./mcp-XIHWT2AU.js");
177
+ const { MCPInstrumentation } = await import("./mcp-ZP6AY3FE.js");
165
178
  const instrumentation = new MCPInstrumentation({ exceptionLogger });
166
179
  instrumentation.manuallyInstrument(mcpModules);
167
180
  logger.debug("Manual instrumentation enabled for MCP");
@@ -1265,24 +1278,24 @@ function addExternalLink(url, options) {
1265
1278
  emitExternalLink(sessionId, url, options?.title, options?.linkType);
1266
1279
  }
1267
1280
  function recordFeedback(type, options) {
1268
- const attributes = { [FEEDBACK_TYPE]: type };
1281
+ const eventAttributes = { [FEEDBACK_TYPE]: type };
1269
1282
  if (options?.score !== void 0) {
1270
- attributes[FEEDBACK_SCORE] = options.score;
1283
+ eventAttributes[FEEDBACK_SCORE] = options.score;
1271
1284
  }
1272
1285
  if (options?.reason !== void 0) {
1273
- attributes[FEEDBACK_REASON] = options.reason;
1286
+ eventAttributes[FEEDBACK_REASON] = options.reason;
1274
1287
  }
1275
1288
  if (options?.comment !== void 0) {
1276
- attributes[FEEDBACK_COMMENT] = options.comment;
1289
+ eventAttributes[FEEDBACK_COMMENT] = options.comment;
1277
1290
  }
1278
1291
  if (options?.source !== void 0) {
1279
- attributes[FEEDBACK_SOURCE] = options.source;
1292
+ eventAttributes[FEEDBACK_SOURCE] = options.source;
1280
1293
  }
1281
- if (options?.traits) {
1282
- for (const [key, value] of Object.entries(options.traits)) {
1294
+ if (options?.attributes) {
1295
+ for (const [key, value] of Object.entries(options.attributes)) {
1283
1296
  const k = `${FEEDBACK_ATTR_PREFIX}${key}`;
1284
- if (attributes[k] === void 0) {
1285
- attributes[k] = value;
1297
+ if (eventAttributes[k] === void 0) {
1298
+ eventAttributes[k] = value;
1286
1299
  }
1287
1300
  }
1288
1301
  }
@@ -1302,14 +1315,136 @@ function recordFeedback(type, options) {
1302
1315
  }
1303
1316
  try {
1304
1317
  if (Object.keys(anchor).length === 0) {
1305
- emitEvent(FEEDBACK_EVENT_NAME, attributes);
1318
+ emitEvent(FEEDBACK_EVENT_NAME, eventAttributes);
1306
1319
  } else {
1307
- callWithProperties(anchor, () => emitEvent(FEEDBACK_EVENT_NAME, attributes));
1320
+ callWithProperties(anchor, () => emitEvent(FEEDBACK_EVENT_NAME, eventAttributes));
1308
1321
  }
1309
1322
  } catch (error) {
1310
1323
  logger.warn("recordFeedback: failed to emit feedback event", error);
1311
1324
  }
1312
1325
  }
1326
+ var METRIC_NAME_PATTERN = /^[a-z][a-z0-9_.-]{0,63}$/;
1327
+ var METRIC_COMMENT_MAX_LEN = 4096;
1328
+ var METRIC_ATTRIBUTES_MAX = 20;
1329
+ var METRIC_ATTRIBUTE_VALUE_MAX_LEN = 256;
1330
+ function recordMetric(options) {
1331
+ try {
1332
+ recordMetricImpl(options);
1333
+ } catch (error) {
1334
+ logger.warn(`recordMetric(${JSON.stringify(options?.name)}) failed; metric dropped.`, error);
1335
+ }
1336
+ }
1337
+ function recordMetricImpl(options) {
1338
+ const name = typeof options.name === "string" ? options.name.toLowerCase() : "";
1339
+ if (!METRIC_NAME_PATTERN.test(name)) {
1340
+ logger.warn(
1341
+ `recordMetric called with an invalid name ${JSON.stringify(options.name)}; metric dropped. Names must match ${METRIC_NAME_PATTERN.source} after lowercasing.`
1342
+ );
1343
+ return;
1344
+ }
1345
+ if (RESERVED_METRIC_NAMES.has(name)) {
1346
+ logger.warn(
1347
+ `recordMetric called with the reserved name ${JSON.stringify(name)}; metric dropped. Brizz computes this metric itself \u2014 pick a different name.`
1348
+ );
1349
+ return;
1350
+ }
1351
+ const { value } = options;
1352
+ let numericValue;
1353
+ if (typeof value === "boolean") {
1354
+ numericValue = value ? 1 : 0;
1355
+ } else if (typeof value === "number" && Number.isFinite(value)) {
1356
+ numericValue = value;
1357
+ } else {
1358
+ logger.warn(
1359
+ `recordMetric(${name}) called with a non-finite or non-numeric value ${JSON.stringify(value)}; metric dropped.`
1360
+ );
1361
+ return;
1362
+ }
1363
+ const eventAttributes = {
1364
+ [METRIC_NAME]: name,
1365
+ [METRIC_VALUE]: numericValue
1366
+ };
1367
+ if (options.unit !== void 0) {
1368
+ eventAttributes[METRIC_UNIT] = options.unit;
1369
+ }
1370
+ if (options.minValue !== void 0) {
1371
+ eventAttributes[METRIC_MIN] = options.minValue;
1372
+ }
1373
+ if (options.maxValue !== void 0) {
1374
+ eventAttributes[METRIC_MAX] = options.maxValue;
1375
+ }
1376
+ if (options.comment !== void 0) {
1377
+ let comment = options.comment;
1378
+ if (comment.length > METRIC_COMMENT_MAX_LEN) {
1379
+ logger.warn(
1380
+ `recordMetric(${name}) comment exceeds ${METRIC_COMMENT_MAX_LEN} characters; truncated.`
1381
+ );
1382
+ comment = comment.slice(0, METRIC_COMMENT_MAX_LEN);
1383
+ }
1384
+ eventAttributes[METRIC_COMMENT] = comment;
1385
+ }
1386
+ if (options.polarity !== void 0) {
1387
+ const polarity = options.polarity;
1388
+ if (polarity === METRIC_POLARITY_POSITIVE || polarity === METRIC_POLARITY_NEGATIVE) {
1389
+ eventAttributes[METRIC_POLARITY] = polarity;
1390
+ } else {
1391
+ logger.warn(
1392
+ `recordMetric(${name}) called with an invalid polarity ${JSON.stringify(polarity)}; expected '${METRIC_POLARITY_POSITIVE}' or '${METRIC_POLARITY_NEGATIVE}'. Emitting the metric without it.`
1393
+ );
1394
+ }
1395
+ }
1396
+ if (options.timestamp !== void 0) {
1397
+ if (Number.isFinite(options.timestamp.getTime())) {
1398
+ eventAttributes[METRIC_TIMESTAMP] = options.timestamp.toISOString();
1399
+ } else {
1400
+ logger.warn(
1401
+ `recordMetric(${name}) called with an invalid timestamp; emitting the metric without it.`
1402
+ );
1403
+ }
1404
+ }
1405
+ if (options.attributes) {
1406
+ let accepted = 0;
1407
+ for (const [key, attrValue] of Object.entries(options.attributes)) {
1408
+ if (accepted >= METRIC_ATTRIBUTES_MAX) {
1409
+ logger.warn(
1410
+ `recordMetric(${name}) called with more than ${METRIC_ATTRIBUTES_MAX} attributes; the excess was dropped.`
1411
+ );
1412
+ break;
1413
+ }
1414
+ const normalizedKey = key.toLowerCase();
1415
+ if (!METRIC_NAME_PATTERN.test(normalizedKey)) {
1416
+ logger.warn(
1417
+ `recordMetric(${name}) called with an invalid attribute key ${JSON.stringify(key)}; that attribute was dropped. Keys must match ${METRIC_NAME_PATTERN.source} after lowercasing.`
1418
+ );
1419
+ continue;
1420
+ }
1421
+ let text = typeof attrValue === "string" ? attrValue : String(attrValue);
1422
+ if (text.length > METRIC_ATTRIBUTE_VALUE_MAX_LEN) {
1423
+ logger.warn(
1424
+ `recordMetric(${name}) attribute ${JSON.stringify(normalizedKey)} exceeds ${METRIC_ATTRIBUTE_VALUE_MAX_LEN} characters; truncated.`
1425
+ );
1426
+ text = text.slice(0, METRIC_ATTRIBUTE_VALUE_MAX_LEN);
1427
+ }
1428
+ eventAttributes[`${METRIC_ATTRIBUTE_PREFIX}${normalizedKey}`] = text;
1429
+ accepted += 1;
1430
+ }
1431
+ }
1432
+ const sessionId = options.sessionId ?? resolveSessionIdFromContext();
1433
+ if (sessionId === void 0) {
1434
+ logger.warn(
1435
+ `recordMetric(${name}) called with no resolvable session id; the metric cannot be attributed to a conversation and is dropped. Pass options.sessionId or call inside a startSession/callWithSessionId scope.`
1436
+ );
1437
+ return;
1438
+ }
1439
+ try {
1440
+ callWithProperties(
1441
+ { [SESSION_ID]: sessionId },
1442
+ () => emitEvent(METRIC_EVENT_NAME, eventAttributes)
1443
+ );
1444
+ } catch (error) {
1445
+ logger.warn("recordMetric: failed to emit metric event", error);
1446
+ }
1447
+ }
1313
1448
  function startSession(sessionId, callback, extraProperties, options) {
1314
1449
  const isTitle = options?.mode === "title";
1315
1450
  const spanName = isTitle ? SESSION_TITLE_SPAN_NAME : SESSION_SPAN_NAME;
@@ -2186,6 +2321,7 @@ export {
2186
2321
  getActiveSession,
2187
2322
  addExternalLink,
2188
2323
  recordFeedback,
2324
+ recordMetric,
2189
2325
  startSession,
2190
2326
  startSessionTitle,
2191
2327
  DEFAULT_PII_PATTERNS,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkLIFLVFK6cjs = require('./chunk-LIFLVFK6.cjs');
3
+ var _chunkNEF2O7HFcjs = require('./chunk-NEF2O7HF.cjs');
4
4
 
5
5
  // src/internal/instrumentation/vercel-ai/interrupt.ts
6
6
  var _api = require('@opentelemetry/api');
@@ -78,7 +78,7 @@ function createInterruptIntegration() {
78
78
  return;
79
79
  }
80
80
  const value = JSON.stringify(names);
81
- span.setAttribute(_chunkLIFLVFK6cjs.INTERRUPT_TOOLS, value);
81
+ span.setAttribute(_chunkNEF2O7HFcjs.INTERRUPT_TOOLS, value);
82
82
  setPending(span.spanContext().spanId, value);
83
83
  };
84
84
  return {
@@ -94,7 +94,7 @@ var InterruptPropagator = class {
94
94
  const parentSpanId = _optionalChain([span, 'access', _ => _.parentSpanContext, 'optionalAccess', _2 => _2.spanId]);
95
95
  const stashed = parentSpanId && pendingByParentSpanId.get(parentSpanId);
96
96
  if (stashed) {
97
- span.setAttribute(_chunkLIFLVFK6cjs.INTERRUPT_TOOLS, stashed);
97
+ span.setAttribute(_chunkNEF2O7HFcjs.INTERRUPT_TOOLS, stashed);
98
98
  pendingByParentSpanId.delete(parentSpanId);
99
99
  return;
100
100
  }
@@ -104,7 +104,7 @@ var InterruptPropagator = class {
104
104
  const scoped = parsePromptToolNames(span.attributes["ai.prompt.tools"]);
105
105
  const names = scoped === null ? [...needsApprovalToolNames] : scoped.filter((n) => needsApprovalToolNames.has(n));
106
106
  if (names.length > 0) {
107
- span.setAttribute(_chunkLIFLVFK6cjs.INTERRUPT_TOOLS, JSON.stringify(names));
107
+ span.setAttribute(_chunkNEF2O7HFcjs.INTERRUPT_TOOLS, JSON.stringify(names));
108
108
  }
109
109
  }
110
110
  onEnd() {
@@ -38,6 +38,30 @@ var FEEDBACK_REASON = "brizz.feedback.reason";
38
38
  var FEEDBACK_COMMENT = "brizz.feedback.comment";
39
39
  var FEEDBACK_SOURCE = "brizz.feedback.source";
40
40
  var FEEDBACK_ATTR_PREFIX = "brizz.feedback.";
41
+ var METRIC_EVENT_NAME = "brizz.internal.metric";
42
+ var METRIC_NAME = "brizz.internal.metric.name";
43
+ var METRIC_VALUE = "brizz.internal.metric.value";
44
+ var METRIC_UNIT = "brizz.internal.metric.unit";
45
+ var METRIC_COMMENT = "brizz.internal.metric.comment";
46
+ var METRIC_POLARITY = "brizz.internal.metric.polarity";
47
+ var METRIC_MIN = "brizz.internal.metric.min";
48
+ var METRIC_MAX = "brizz.internal.metric.max";
49
+ var METRIC_TIMESTAMP = "brizz.internal.metric.timestamp";
50
+ var METRIC_ATTRIBUTE_PREFIX = "brizz.internal.metric.attribute.";
51
+ var RESERVED_METRIC_NAMES = /* @__PURE__ */ new Set([
52
+ "faithfulness",
53
+ "answer_relevancy",
54
+ "toxicity",
55
+ "task_completion_v2",
56
+ "prompt_alignment",
57
+ "user_frustration",
58
+ "user_satisfaction_v2",
59
+ "repetitiveness",
60
+ "session_outcome",
61
+ "response_time"
62
+ ]);
63
+ var METRIC_POLARITY_POSITIVE = "positive";
64
+ var METRIC_POLARITY_NEGATIVE = "negative";
41
65
 
42
66
 
43
67
 
@@ -77,4 +101,17 @@ var FEEDBACK_ATTR_PREFIX = "brizz.feedback.";
77
101
 
78
102
 
79
103
 
80
- exports.BRIZZ = BRIZZ; exports.SESSION_ID = SESSION_ID; exports.PROPERTIES_CONTEXT_KEY = PROPERTIES_CONTEXT_KEY; exports.SESSION_OBJECT_CONTEXT_KEY = SESSION_OBJECT_CONTEXT_KEY; exports.SESSION_INPUT = SESSION_INPUT; exports.SESSION_OUTPUT = SESSION_OUTPUT; exports.SESSION_INPUT_CONTEXT = SESSION_INPUT_CONTEXT; exports.SESSION_OUTPUT_CONTEXT = SESSION_OUTPUT_CONTEXT; exports.SESSION_SPAN_NAME = SESSION_SPAN_NAME; exports.MUTE_INPUT = MUTE_INPUT; exports.MUTE_OUTPUT = MUTE_OUTPUT; exports.USER_ID = USER_ID; exports.USER_EMAIL = USER_EMAIL; exports.USER_NAME = USER_NAME; exports.USER_ROLE = USER_ROLE; exports.USER_PLAN = USER_PLAN; exports.ORGANIZATION_ID = ORGANIZATION_ID; exports.ORGANIZATION_NAME = ORGANIZATION_NAME; exports.ORGANIZATION_PLAN = ORGANIZATION_PLAN; exports.ORGANIZATION_DOMAIN = ORGANIZATION_DOMAIN; exports.MESSAGE_ID = MESSAGE_ID; exports.SESSION_TITLE_SPAN_NAME = SESSION_TITLE_SPAN_NAME; exports.SESSION_TITLE_GENERATION = SESSION_TITLE_GENERATION; exports.SESSION_TITLE = SESSION_TITLE; exports.INTERRUPT_TOOLS = INTERRUPT_TOOLS; exports.INTERNAL_EVENT_PREFIX = INTERNAL_EVENT_PREFIX; exports.EXTERNAL_LINK_EVENT_NAME = EXTERNAL_LINK_EVENT_NAME; exports.EXTERNAL_LINK_URL = EXTERNAL_LINK_URL; exports.EXTERNAL_LINK_TITLE = EXTERNAL_LINK_TITLE; exports.EXTERNAL_LINK_TYPE = EXTERNAL_LINK_TYPE; exports.FEEDBACK_EVENT_NAME = FEEDBACK_EVENT_NAME; exports.FEEDBACK_TYPE = FEEDBACK_TYPE; exports.FEEDBACK_SCORE = FEEDBACK_SCORE; exports.FEEDBACK_REASON = FEEDBACK_REASON; exports.FEEDBACK_COMMENT = FEEDBACK_COMMENT; exports.FEEDBACK_SOURCE = FEEDBACK_SOURCE; exports.FEEDBACK_ATTR_PREFIX = FEEDBACK_ATTR_PREFIX;
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ exports.BRIZZ = BRIZZ; exports.SESSION_ID = SESSION_ID; exports.PROPERTIES_CONTEXT_KEY = PROPERTIES_CONTEXT_KEY; exports.SESSION_OBJECT_CONTEXT_KEY = SESSION_OBJECT_CONTEXT_KEY; exports.SESSION_INPUT = SESSION_INPUT; exports.SESSION_OUTPUT = SESSION_OUTPUT; exports.SESSION_INPUT_CONTEXT = SESSION_INPUT_CONTEXT; exports.SESSION_OUTPUT_CONTEXT = SESSION_OUTPUT_CONTEXT; exports.SESSION_SPAN_NAME = SESSION_SPAN_NAME; exports.MUTE_INPUT = MUTE_INPUT; exports.MUTE_OUTPUT = MUTE_OUTPUT; exports.USER_ID = USER_ID; exports.USER_EMAIL = USER_EMAIL; exports.USER_NAME = USER_NAME; exports.USER_ROLE = USER_ROLE; exports.USER_PLAN = USER_PLAN; exports.ORGANIZATION_ID = ORGANIZATION_ID; exports.ORGANIZATION_NAME = ORGANIZATION_NAME; exports.ORGANIZATION_PLAN = ORGANIZATION_PLAN; exports.ORGANIZATION_DOMAIN = ORGANIZATION_DOMAIN; exports.MESSAGE_ID = MESSAGE_ID; exports.SESSION_TITLE_SPAN_NAME = SESSION_TITLE_SPAN_NAME; exports.SESSION_TITLE_GENERATION = SESSION_TITLE_GENERATION; exports.SESSION_TITLE = SESSION_TITLE; exports.INTERRUPT_TOOLS = INTERRUPT_TOOLS; exports.INTERNAL_EVENT_PREFIX = INTERNAL_EVENT_PREFIX; exports.EXTERNAL_LINK_EVENT_NAME = EXTERNAL_LINK_EVENT_NAME; exports.EXTERNAL_LINK_URL = EXTERNAL_LINK_URL; exports.EXTERNAL_LINK_TITLE = EXTERNAL_LINK_TITLE; exports.EXTERNAL_LINK_TYPE = EXTERNAL_LINK_TYPE; exports.FEEDBACK_EVENT_NAME = FEEDBACK_EVENT_NAME; exports.FEEDBACK_TYPE = FEEDBACK_TYPE; exports.FEEDBACK_SCORE = FEEDBACK_SCORE; exports.FEEDBACK_REASON = FEEDBACK_REASON; exports.FEEDBACK_COMMENT = FEEDBACK_COMMENT; exports.FEEDBACK_SOURCE = FEEDBACK_SOURCE; exports.FEEDBACK_ATTR_PREFIX = FEEDBACK_ATTR_PREFIX; exports.METRIC_EVENT_NAME = METRIC_EVENT_NAME; exports.METRIC_NAME = METRIC_NAME; exports.METRIC_VALUE = METRIC_VALUE; exports.METRIC_UNIT = METRIC_UNIT; exports.METRIC_COMMENT = METRIC_COMMENT; exports.METRIC_POLARITY = METRIC_POLARITY; exports.METRIC_MIN = METRIC_MIN; exports.METRIC_MAX = METRIC_MAX; exports.METRIC_TIMESTAMP = METRIC_TIMESTAMP; exports.METRIC_ATTRIBUTE_PREFIX = METRIC_ATTRIBUTE_PREFIX; exports.RESERVED_METRIC_NAMES = RESERVED_METRIC_NAMES; exports.METRIC_POLARITY_POSITIVE = METRIC_POLARITY_POSITIVE; exports.METRIC_POLARITY_NEGATIVE = METRIC_POLARITY_NEGATIVE;
@@ -38,6 +38,30 @@ var FEEDBACK_REASON = "brizz.feedback.reason";
38
38
  var FEEDBACK_COMMENT = "brizz.feedback.comment";
39
39
  var FEEDBACK_SOURCE = "brizz.feedback.source";
40
40
  var FEEDBACK_ATTR_PREFIX = "brizz.feedback.";
41
+ var METRIC_EVENT_NAME = "brizz.internal.metric";
42
+ var METRIC_NAME = "brizz.internal.metric.name";
43
+ var METRIC_VALUE = "brizz.internal.metric.value";
44
+ var METRIC_UNIT = "brizz.internal.metric.unit";
45
+ var METRIC_COMMENT = "brizz.internal.metric.comment";
46
+ var METRIC_POLARITY = "brizz.internal.metric.polarity";
47
+ var METRIC_MIN = "brizz.internal.metric.min";
48
+ var METRIC_MAX = "brizz.internal.metric.max";
49
+ var METRIC_TIMESTAMP = "brizz.internal.metric.timestamp";
50
+ var METRIC_ATTRIBUTE_PREFIX = "brizz.internal.metric.attribute.";
51
+ var RESERVED_METRIC_NAMES = /* @__PURE__ */ new Set([
52
+ "faithfulness",
53
+ "answer_relevancy",
54
+ "toxicity",
55
+ "task_completion_v2",
56
+ "prompt_alignment",
57
+ "user_frustration",
58
+ "user_satisfaction_v2",
59
+ "repetitiveness",
60
+ "session_outcome",
61
+ "response_time"
62
+ ]);
63
+ var METRIC_POLARITY_POSITIVE = "positive";
64
+ var METRIC_POLARITY_NEGATIVE = "negative";
41
65
 
42
66
  export {
43
67
  BRIZZ,
@@ -76,5 +100,18 @@ export {
76
100
  FEEDBACK_REASON,
77
101
  FEEDBACK_COMMENT,
78
102
  FEEDBACK_SOURCE,
79
- FEEDBACK_ATTR_PREFIX
103
+ FEEDBACK_ATTR_PREFIX,
104
+ METRIC_EVENT_NAME,
105
+ METRIC_NAME,
106
+ METRIC_VALUE,
107
+ METRIC_UNIT,
108
+ METRIC_COMMENT,
109
+ METRIC_POLARITY,
110
+ METRIC_MIN,
111
+ METRIC_MAX,
112
+ METRIC_TIMESTAMP,
113
+ METRIC_ATTRIBUTE_PREFIX,
114
+ RESERVED_METRIC_NAMES,
115
+ METRIC_POLARITY_POSITIVE,
116
+ METRIC_POLARITY_NEGATIVE
80
117
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/internal/version.ts
2
2
  function getSDKVersion() {
3
- return "0.1.33";
3
+ return "0.1.34";
4
4
  }
5
5
 
6
6
 
package/dist/index.cjs CHANGED
@@ -33,17 +33,18 @@
33
33
 
34
34
 
35
35
 
36
- var _chunkWXHBHJRJcjs = require('./chunk-WXHBHJRJ.cjs');
36
+
37
+ var _chunk3LR22M4Ecjs = require('./chunk-3LR22M4E.cjs');
37
38
  require('./chunk-UNLNNKZ7.cjs');
38
- require('./chunk-3ITCDKTJ.cjs');
39
+ require('./chunk-VU5YDLUD.cjs');
39
40
 
40
41
 
41
42
 
42
43
 
43
44
 
44
45
  var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
45
- require('./chunk-LFLYWZ6D.cjs');
46
- require('./chunk-LIFLVFK6.cjs');
46
+ require('./chunk-M3UGFLH7.cjs');
47
+ require('./chunk-NEF2O7HF.cjs');
47
48
  require('./chunk-OBGZSXTJ.cjs');
48
49
 
49
50
  // src/internal/instrumentation/auto-init.ts
@@ -93,7 +94,7 @@ function loadGenAIInstrumentations() {
93
94
  function loadMCPInstrumentation() {
94
95
  void (async () => {
95
96
  try {
96
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-OKSS2R56.cjs")));
97
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-WCMY6ED6.cjs")));
97
98
  const mcp = new MCPInstrumentation({ exceptionLogger });
98
99
  _instrumentation.registerInstrumentations.call(void 0, { instrumentations: [mcp] });
99
100
  _chunkWC573FCIcjs.logger.debug("Auto-loaded MCP instrumentation");
@@ -135,7 +136,7 @@ function loadVercelAITelemetry() {
135
136
  }
136
137
  const isV7 = typeof ai.registerTelemetry === "function";
137
138
  const integrations = [];
138
- const { createInterruptIntegration } = await Promise.resolve().then(() => _interopRequireWildcard(require("./interrupt-EMUUN3ER.cjs")));
139
+ const { createInterruptIntegration } = await Promise.resolve().then(() => _interopRequireWildcard(require("./interrupt-7MWQCOY3.cjs")));
139
140
  integrations.push(createInterruptIntegration());
140
141
  let otelCollectorLoaded = false;
141
142
  try {
@@ -226,4 +227,5 @@ var init_exports = {};
226
227
 
227
228
 
228
229
 
229
- exports.Brizz = _chunkWXHBHJRJcjs.Brizz; exports.DEFAULT_PII_PATTERNS = _chunkWXHBHJRJcjs.DEFAULT_PII_PATTERNS; exports.LogLevel = _chunkWC573FCIcjs.LogLevel; exports.Session = _chunkWXHBHJRJcjs.Session; exports.SessionTitle = _chunkWXHBHJRJcjs.SessionTitle; exports.SeverityNumber = _apilogs.SeverityNumber; exports.addExternalLink = _chunkWXHBHJRJcjs.addExternalLink; exports.callWithMessageId = _chunkWXHBHJRJcjs.callWithMessageId; exports.callWithMute = _chunkWXHBHJRJcjs.callWithMute; exports.callWithOrganization = _chunkWXHBHJRJcjs.callWithOrganization; exports.callWithProperties = _chunkWXHBHJRJcjs.callWithProperties; exports.callWithSessionId = _chunkWXHBHJRJcjs.callWithSessionId; exports.callWithUser = _chunkWXHBHJRJcjs.callWithUser; exports.detectRuntime = _chunkWXHBHJRJcjs.detectRuntime; exports.emitEvent = _chunkWXHBHJRJcjs.emitEvent; exports.emitEventWithSessionId = _chunkWXHBHJRJcjs.emitEventWithSessionId; exports.getActiveSession = _chunkWXHBHJRJcjs.getActiveSession; exports.getLogLevel = _chunkWC573FCIcjs.getLogLevel; exports.getMetricsExporter = _chunkWXHBHJRJcjs.getMetricsExporter; exports.getMetricsReader = _chunkWXHBHJRJcjs.getMetricsReader; exports.getSpanExporter = _chunkWXHBHJRJcjs.getSpanExporter; exports.getSpanProcessor = _chunkWXHBHJRJcjs.getSpanProcessor; exports.init = init_exports; exports.logger = _chunkWC573FCIcjs.logger; exports.maskAttributes = _chunkWXHBHJRJcjs.maskAttributes; exports.maskValue = _chunkWXHBHJRJcjs.maskValue; exports.recordFeedback = _chunkWXHBHJRJcjs.recordFeedback; exports.setCurrentSpanCustomProperties = _chunkWXHBHJRJcjs.setCurrentSpanCustomProperties; exports.setLogLevel = _chunkWC573FCIcjs.setLogLevel; exports.setMessageId = _chunkWXHBHJRJcjs.setMessageId; exports.setOrganization = _chunkWXHBHJRJcjs.setOrganization; exports.setUser = _chunkWXHBHJRJcjs.setUser; exports.startSession = _chunkWXHBHJRJcjs.startSession; exports.startSessionTitle = _chunkWXHBHJRJcjs.startSessionTitle; exports.withMessageId = _chunkWXHBHJRJcjs.withMessageId; exports.withMute = _chunkWXHBHJRJcjs.withMute; exports.withOrganization = _chunkWXHBHJRJcjs.withOrganization; exports.withProperties = _chunkWXHBHJRJcjs.withProperties; exports.withSessionId = _chunkWXHBHJRJcjs.withSessionId; exports.withUser = _chunkWXHBHJRJcjs.withUser;
230
+
231
+ exports.Brizz = _chunk3LR22M4Ecjs.Brizz; exports.DEFAULT_PII_PATTERNS = _chunk3LR22M4Ecjs.DEFAULT_PII_PATTERNS; exports.LogLevel = _chunkWC573FCIcjs.LogLevel; exports.Session = _chunk3LR22M4Ecjs.Session; exports.SessionTitle = _chunk3LR22M4Ecjs.SessionTitle; exports.SeverityNumber = _apilogs.SeverityNumber; exports.addExternalLink = _chunk3LR22M4Ecjs.addExternalLink; exports.callWithMessageId = _chunk3LR22M4Ecjs.callWithMessageId; exports.callWithMute = _chunk3LR22M4Ecjs.callWithMute; exports.callWithOrganization = _chunk3LR22M4Ecjs.callWithOrganization; exports.callWithProperties = _chunk3LR22M4Ecjs.callWithProperties; exports.callWithSessionId = _chunk3LR22M4Ecjs.callWithSessionId; exports.callWithUser = _chunk3LR22M4Ecjs.callWithUser; exports.detectRuntime = _chunk3LR22M4Ecjs.detectRuntime; exports.emitEvent = _chunk3LR22M4Ecjs.emitEvent; exports.emitEventWithSessionId = _chunk3LR22M4Ecjs.emitEventWithSessionId; exports.getActiveSession = _chunk3LR22M4Ecjs.getActiveSession; exports.getLogLevel = _chunkWC573FCIcjs.getLogLevel; exports.getMetricsExporter = _chunk3LR22M4Ecjs.getMetricsExporter; exports.getMetricsReader = _chunk3LR22M4Ecjs.getMetricsReader; exports.getSpanExporter = _chunk3LR22M4Ecjs.getSpanExporter; exports.getSpanProcessor = _chunk3LR22M4Ecjs.getSpanProcessor; exports.init = init_exports; exports.logger = _chunkWC573FCIcjs.logger; exports.maskAttributes = _chunk3LR22M4Ecjs.maskAttributes; exports.maskValue = _chunk3LR22M4Ecjs.maskValue; exports.recordFeedback = _chunk3LR22M4Ecjs.recordFeedback; exports.recordMetric = _chunk3LR22M4Ecjs.recordMetric; exports.setCurrentSpanCustomProperties = _chunk3LR22M4Ecjs.setCurrentSpanCustomProperties; exports.setLogLevel = _chunkWC573FCIcjs.setLogLevel; exports.setMessageId = _chunk3LR22M4Ecjs.setMessageId; exports.setOrganization = _chunk3LR22M4Ecjs.setOrganization; exports.setUser = _chunk3LR22M4Ecjs.setUser; exports.startSession = _chunk3LR22M4Ecjs.startSession; exports.startSessionTitle = _chunk3LR22M4Ecjs.startSessionTitle; exports.withMessageId = _chunk3LR22M4Ecjs.withMessageId; exports.withMute = _chunk3LR22M4Ecjs.withMute; exports.withOrganization = _chunk3LR22M4Ecjs.withOrganization; exports.withProperties = _chunk3LR22M4Ecjs.withProperties; exports.withSessionId = _chunk3LR22M4Ecjs.withSessionId; exports.withUser = _chunk3LR22M4Ecjs.withUser;
package/dist/index.d.cts CHANGED
@@ -249,7 +249,19 @@ declare function recordFeedback(type: string, options?: {
249
249
  source?: string;
250
250
  messageId?: string;
251
251
  sessionId?: string;
252
- traits?: Record<string, string>;
252
+ attributes?: Record<string, string>;
253
+ }): void;
254
+ declare function recordMetric(options: {
255
+ name: string;
256
+ value: number | boolean;
257
+ unit?: string;
258
+ comment?: string;
259
+ attributes?: Record<string, string>;
260
+ polarity?: 'positive' | 'negative';
261
+ minValue?: number;
262
+ maxValue?: number;
263
+ timestamp?: Date;
264
+ sessionId?: string;
253
265
  }): void;
254
266
  declare function startSession<T>(sessionId: string, callback: (session: Session) => T, extraProperties?: Record<string, AttributeValue>, options?: {
255
267
  mode?: 'default' | 'title';
@@ -274,4 +286,4 @@ declare namespace init {
274
286
  export { };
275
287
  }
276
288
 
277
- export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMCPManualModules, type IMaskingConfig, type IMuteOptions, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, addExternalLink, callWithMessageId, callWithMute, callWithOrganization, callWithProperties, callWithSessionId, callWithUser, detectRuntime, emitEvent, emitEventWithSessionId, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, recordFeedback, setCurrentSpanCustomProperties, setLogLevel, setMessageId, setOrganization, setUser, startSession, startSessionTitle, withMessageId, withMute, withOrganization, withProperties, withSessionId, withUser };
289
+ export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMCPManualModules, type IMaskingConfig, type IMuteOptions, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, addExternalLink, callWithMessageId, callWithMute, callWithOrganization, callWithProperties, callWithSessionId, callWithUser, detectRuntime, emitEvent, emitEventWithSessionId, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, recordFeedback, recordMetric, setCurrentSpanCustomProperties, setLogLevel, setMessageId, setOrganization, setUser, startSession, startSessionTitle, withMessageId, withMute, withOrganization, withProperties, withSessionId, withUser };
package/dist/index.d.ts CHANGED
@@ -249,7 +249,19 @@ declare function recordFeedback(type: string, options?: {
249
249
  source?: string;
250
250
  messageId?: string;
251
251
  sessionId?: string;
252
- traits?: Record<string, string>;
252
+ attributes?: Record<string, string>;
253
+ }): void;
254
+ declare function recordMetric(options: {
255
+ name: string;
256
+ value: number | boolean;
257
+ unit?: string;
258
+ comment?: string;
259
+ attributes?: Record<string, string>;
260
+ polarity?: 'positive' | 'negative';
261
+ minValue?: number;
262
+ maxValue?: number;
263
+ timestamp?: Date;
264
+ sessionId?: string;
253
265
  }): void;
254
266
  declare function startSession<T>(sessionId: string, callback: (session: Session) => T, extraProperties?: Record<string, AttributeValue>, options?: {
255
267
  mode?: 'default' | 'title';
@@ -274,4 +286,4 @@ declare namespace init {
274
286
  export { };
275
287
  }
276
288
 
277
- export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMCPManualModules, type IMaskingConfig, type IMuteOptions, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, addExternalLink, callWithMessageId, callWithMute, callWithOrganization, callWithProperties, callWithSessionId, callWithUser, detectRuntime, emitEvent, emitEventWithSessionId, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, recordFeedback, setCurrentSpanCustomProperties, setLogLevel, setMessageId, setOrganization, setUser, startSession, startSessionTitle, withMessageId, withMute, withOrganization, withProperties, withSessionId, withUser };
289
+ export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMCPManualModules, type IMaskingConfig, type IMuteOptions, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, addExternalLink, callWithMessageId, callWithMute, callWithOrganization, callWithProperties, callWithSessionId, callWithUser, detectRuntime, emitEvent, emitEventWithSessionId, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, recordFeedback, recordMetric, setCurrentSpanCustomProperties, setLogLevel, setMessageId, setOrganization, setUser, startSession, startSessionTitle, withMessageId, withMute, withOrganization, withProperties, withSessionId, withUser };
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ import {
21
21
  maskAttributes,
22
22
  maskValue,
23
23
  recordFeedback,
24
+ recordMetric,
24
25
  setCurrentSpanCustomProperties,
25
26
  setMessageId,
26
27
  setOrganization,
@@ -33,17 +34,17 @@ import {
33
34
  withProperties,
34
35
  withSessionId,
35
36
  withUser
36
- } from "./chunk-KDFV63CU.js";
37
+ } from "./chunk-F3O3MTQ4.js";
37
38
  import "./chunk-7SUF4VVI.js";
38
- import "./chunk-PY6FJBVY.js";
39
+ import "./chunk-64STNQKL.js";
39
40
  import {
40
41
  LogLevel,
41
42
  getLogLevel,
42
43
  logger,
43
44
  setLogLevel
44
45
  } from "./chunk-Y4HNUX3Q.js";
45
- import "./chunk-N4X2B6BC.js";
46
- import "./chunk-GRRKMMG6.js";
46
+ import "./chunk-24CEDVD2.js";
47
+ import "./chunk-QY4VADPP.js";
47
48
  import "./chunk-3RG5ZIWI.js";
48
49
 
49
50
  // src/internal/instrumentation/auto-init.ts
@@ -93,7 +94,7 @@ function loadGenAIInstrumentations() {
93
94
  function loadMCPInstrumentation() {
94
95
  void (async () => {
95
96
  try {
96
- const { MCPInstrumentation } = await import("./mcp-XIHWT2AU.js");
97
+ const { MCPInstrumentation } = await import("./mcp-ZP6AY3FE.js");
97
98
  const mcp = new MCPInstrumentation({ exceptionLogger });
98
99
  registerInstrumentations({ instrumentations: [mcp] });
99
100
  logger.debug("Auto-loaded MCP instrumentation");
@@ -135,7 +136,7 @@ function loadVercelAITelemetry() {
135
136
  }
136
137
  const isV7 = typeof ai.registerTelemetry === "function";
137
138
  const integrations = [];
138
- const { createInterruptIntegration } = await import("./interrupt-AOYNN5AB.js");
139
+ const { createInterruptIntegration } = await import("./interrupt-KADNA6WK.js");
139
140
  integrations.push(createInterruptIntegration());
140
141
  let otelCollectorLoaded = false;
141
142
  try {
@@ -213,6 +214,7 @@ export {
213
214
  maskAttributes,
214
215
  maskValue,
215
216
  recordFeedback,
217
+ recordMetric,
216
218
  setCurrentSpanCustomProperties,
217
219
  setLogLevel,
218
220
  setMessageId,
@@ -0,0 +1,12 @@
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;
@@ -2,8 +2,8 @@ import {
2
2
  InterruptPropagator,
3
3
  _resetInterruptState,
4
4
  createInterruptIntegration
5
- } from "./chunk-N4X2B6BC.js";
6
- import "./chunk-GRRKMMG6.js";
5
+ } from "./chunk-24CEDVD2.js";
6
+ import "./chunk-QY4VADPP.js";
7
7
  import "./chunk-3RG5ZIWI.js";
8
8
  export {
9
9
  InterruptPropagator,
@@ -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 _chunk3ITCDKTJcjs = require('./chunk-3ITCDKTJ.cjs');
3
+ var _chunkVU5YDLUDcjs = require('./chunk-VU5YDLUD.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 _chunkLIFLVFK6cjs = require('./chunk-LIFLVFK6.cjs');
11
+ var _chunkNEF2O7HFcjs = require('./chunk-NEF2O7HF.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(`${_chunkLIFLVFK6cjs.BRIZZ}.${_chunkLIFLVFK6cjs.SESSION_ID}`, sessionId);
142
+ span.setAttribute(`${_chunkNEF2O7HFcjs.BRIZZ}.${_chunkNEF2O7HFcjs.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(_chunkLIFLVFK6cjs.PROPERTIES_CONTEXT_KEY);
151
- const merged = prev ? { ...prev, [_chunkLIFLVFK6cjs.SESSION_ID]: sessionId } : { [_chunkLIFLVFK6cjs.SESSION_ID]: sessionId };
150
+ const prev = baseContext.getValue(_chunkNEF2O7HFcjs.PROPERTIES_CONTEXT_KEY);
151
+ const merged = prev ? { ...prev, [_chunkNEF2O7HFcjs.SESSION_ID]: sessionId } : { [_chunkNEF2O7HFcjs.SESSION_ID]: sessionId };
152
152
  return {
153
- context: baseContext.setValue(_chunkLIFLVFK6cjs.PROPERTIES_CONTEXT_KEY, merged),
153
+ context: baseContext.setValue(_chunkNEF2O7HFcjs.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 = _chunk3ITCDKTJcjs.getSDKVersion.call(void 0, );
573
+ var INSTRUMENTATION_VERSION = _chunkVU5YDLUDcjs.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";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getSDKVersion
3
- } from "./chunk-PY6FJBVY.js";
3
+ } from "./chunk-64STNQKL.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-GRRKMMG6.js";
11
+ } from "./chunk-QY4VADPP.js";
12
12
  import "./chunk-3RG5ZIWI.js";
13
13
 
14
14
  // src/internal/instrumentation/mcp/instrumentation.ts