@brizz/sdk 0.1.59 → 0.2.0

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.
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  // src/internal/version.ts
11
11
  function getSDKVersion() {
12
- return "0.1.59";
12
+ return "0.2.0";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts
@@ -9,7 +9,7 @@ var _chunkNF52RMLWcjs = require('./chunk-NF52RMLW.cjs');
9
9
 
10
10
  // src/internal/version.ts
11
11
  function getSDKVersion() {
12
- return "0.1.59";
12
+ return "0.2.0";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts
package/dist/index.cjs CHANGED
@@ -43,7 +43,7 @@ var _chunk4QNEI7VZcjs = require('./chunk-4QNEI7VZ.cjs');
43
43
 
44
44
 
45
45
 
46
- var _chunk5QZM5EVPcjs = require('./chunk-5QZM5EVP.cjs');
46
+ var _chunkCNVK5RA3cjs = require('./chunk-CNVK5RA3.cjs');
47
47
 
48
48
 
49
49
 
@@ -112,7 +112,7 @@ var _api = require('@opentelemetry/api');
112
112
 
113
113
  // src/internal/instrumentation/langgraph/attributes.ts
114
114
  var INSTRUMENTATION_NAME = "@brizz/sdk/langgraph";
115
- var INSTRUMENTATION_VERSION = _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, );
115
+ var INSTRUMENTATION_VERSION = _chunkCNVK5RA3cjs.getSDKVersion.call(void 0, );
116
116
  var MODULE_NAME = "@langchain/langgraph";
117
117
  var SUPPORTED_VERSIONS = [">=0.2.0 <2"];
118
118
  function isSupportedVersion(version) {
@@ -483,7 +483,7 @@ var ATTR_ANSWERS = "typesafe.answers";
483
483
  var PATCHED_FLAG2 = /* @__PURE__ */ Symbol.for("brizz.typesafe.patched");
484
484
  var TypeSafeInstrumentation = class extends _instrumentation.InstrumentationBase {
485
485
  constructor(config = {}) {
486
- super(INSTRUMENTATION_NAME2, _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, ), config);
486
+ super(INSTRUMENTATION_NAME2, _chunkCNVK5RA3cjs.getSDKVersion.call(void 0, ), config);
487
487
  this.setTracerProvider(_chunkDC2MFO65cjs.brizzTracerProvider);
488
488
  }
489
489
  init() {
@@ -710,7 +710,7 @@ function loadGenAIInstrumentations() {
710
710
  function loadMCPInstrumentation() {
711
711
  void (async () => {
712
712
  try {
713
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-UPBKSTB7.cjs")));
713
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-5ERVMLSA.cjs")));
714
714
  const mcp = new MCPInstrumentation({ exceptionLogger });
715
715
  _instrumentation.registerInstrumentations.call(void 0, { instrumentations: [mcp], tracerProvider: _chunkDC2MFO65cjs.brizzTracerProvider });
716
716
  _chunkWC573FCIcjs.logger.debug("Auto-loaded MCP instrumentation");
@@ -1321,7 +1321,7 @@ var InstrumentationRegistry = (_class = class _InstrumentationRegistry {construc
1321
1321
  const mcpModules = this.manualModules.mcp;
1322
1322
  void (async () => {
1323
1323
  try {
1324
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-UPBKSTB7.cjs")));
1324
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-5ERVMLSA.cjs")));
1325
1325
  const instrumentation = new MCPInstrumentation({ exceptionLogger: exceptionLogger2 });
1326
1326
  instrumentation.manuallyInstrument(mcpModules);
1327
1327
  _chunkWC573FCIcjs.logger.debug("Manual instrumentation enabled for MCP");
@@ -1928,7 +1928,7 @@ var LoggingModule = (_class2 = class _LoggingModule {constructor() { _class2.pro
1928
1928
  const resourceAttributes = {
1929
1929
  ...config.resourceAttributes,
1930
1930
  "service.name": serviceName,
1931
- [BRIZZ_SDK_VERSION]: _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, ),
1931
+ [BRIZZ_SDK_VERSION]: _chunkCNVK5RA3cjs.getSDKVersion.call(void 0, ),
1932
1932
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1933
1933
  };
1934
1934
  if (config.environment) {
@@ -2179,7 +2179,7 @@ var BrizzSpanExporter = (_class4 = class {
2179
2179
  const resourceAttrs = {
2180
2180
  ...config.resourceAttributes,
2181
2181
  "service.name": config.appName,
2182
- [BRIZZ_SDK_VERSION]: _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, ),
2182
+ [BRIZZ_SDK_VERSION]: _chunkCNVK5RA3cjs.getSDKVersion.call(void 0, ),
2183
2183
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2184
2184
  };
2185
2185
  if (config.environment) {
@@ -2543,7 +2543,7 @@ function getSpanProcessor() {
2543
2543
  // src/internal/trace/decision-call.ts
2544
2544
 
2545
2545
 
2546
- var tracer = _chunkDC2MFO65cjs.brizzTracerProvider.getTracer("@brizz/sdk/decision-call", _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, ));
2546
+ var tracer = _chunkDC2MFO65cjs.brizzTracerProvider.getTracer("@brizz/sdk/decision-call", _chunkCNVK5RA3cjs.getSDKVersion.call(void 0, ));
2547
2547
  function decisionCall(options, callback) {
2548
2548
  const span = startDecisionSpan(options);
2549
2549
  if (!span) {
@@ -2723,7 +2723,7 @@ var _Brizz = (_class6 = class __Brizz {constructor() { _class6.prototype.__init1
2723
2723
  */
2724
2724
  setupInstrumentation(options) {
2725
2725
  const registry = InstrumentationRegistry.getInstance();
2726
- _chunk5QZM5EVPcjs.configure.call(void 0, resolveMcpSessionTracking(options.mcpSessionTracking));
2726
+ _chunkCNVK5RA3cjs.configure.call(void 0, resolveMcpSessionTracking(options.mcpSessionTracking));
2727
2727
  patchInstalledCallbackManager();
2728
2728
  patchInstalledLangGraph();
2729
2729
  patchInstalledTypeSafe();
@@ -2758,7 +2758,7 @@ var _Brizz = (_class6 = class __Brizz {constructor() { _class6.prototype.__init1
2758
2758
  const resourceAttributes = {
2759
2759
  ...resolvedConfig.resourceAttributes,
2760
2760
  "service.name": resolvedConfig.appName,
2761
- [BRIZZ_SDK_VERSION]: _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, ),
2761
+ [BRIZZ_SDK_VERSION]: _chunkCNVK5RA3cjs.getSDKVersion.call(void 0, ),
2762
2762
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2763
2763
  };
2764
2764
  if (resolvedConfig.environment) {
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ import {
43
43
  import {
44
44
  configure,
45
45
  getSDKVersion
46
- } from "./chunk-ZGX52S4U.js";
46
+ } from "./chunk-5HCG3JKU.js";
47
47
  import {
48
48
  bindToBrizz,
49
49
  brizzTracerProvider,
@@ -710,7 +710,7 @@ function loadGenAIInstrumentations() {
710
710
  function loadMCPInstrumentation() {
711
711
  void (async () => {
712
712
  try {
713
- const { MCPInstrumentation } = await import("./mcp-TTECBPGZ.js");
713
+ const { MCPInstrumentation } = await import("./mcp-EJAJTGIC.js");
714
714
  const mcp = new MCPInstrumentation({ exceptionLogger });
715
715
  registerInstrumentations({ instrumentations: [mcp], tracerProvider: brizzTracerProvider });
716
716
  logger.debug("Auto-loaded MCP instrumentation");
@@ -1321,7 +1321,7 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
1321
1321
  const mcpModules = this.manualModules.mcp;
1322
1322
  void (async () => {
1323
1323
  try {
1324
- const { MCPInstrumentation } = await import("./mcp-TTECBPGZ.js");
1324
+ const { MCPInstrumentation } = await import("./mcp-EJAJTGIC.js");
1325
1325
  const instrumentation = new MCPInstrumentation({ exceptionLogger: exceptionLogger2 });
1326
1326
  instrumentation.manuallyInstrument(mcpModules);
1327
1327
  logger.debug("Manual instrumentation enabled for MCP");
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunk5QZM5EVPcjs = require('./chunk-5QZM5EVP.cjs');
11
+ var _chunkCNVK5RA3cjs = require('./chunk-CNVK5RA3.cjs');
12
12
 
13
13
 
14
14
 
@@ -410,14 +410,14 @@ function wrapOnRequest(original, tracer) {
410
410
  return original.apply(this, args);
411
411
  }
412
412
  const method = request.method;
413
- if (method === METHOD_TOOLS_CALL && _chunk5QZM5EVPcjs.isSessionToolCall.call(void 0, request)) {
413
+ if (method === METHOD_TOOLS_CALL && _chunkCNVK5RA3cjs.isSessionToolCall.call(void 0, request)) {
414
414
  return answerSessionToolCall(this, request, tracer, args, original);
415
415
  }
416
416
  const handler = _nullishCoalesce(handlers.get(method), () => ( this.fallbackRequestHandler));
417
417
  if (!handler) {
418
418
  return original.apply(this, args);
419
419
  }
420
- const tracking = _chunk5QZM5EVPcjs.isEnabled.call(void 0, ) && method === METHOD_TOOLS_CALL ? _chunk5QZM5EVPcjs.popTrackingArguments.call(void 0, request) : {};
420
+ const tracking = _chunkCNVK5RA3cjs.isEnabled.call(void 0, ) && method === METHOD_TOOLS_CALL ? _chunkCNVK5RA3cjs.popTrackingArguments.call(void 0, request) : {};
421
421
  const started = safeStartServerSpan(tracer, request, this, tracking);
422
422
  if (!started) {
423
423
  return original.apply(this, args);
@@ -427,9 +427,9 @@ function wrapOnRequest(original, tracer) {
427
427
  if (method === METHOD_TOOLS_LIST) {
428
428
  hooks.onResult = (result) => {
429
429
  let advertised = result;
430
- if (_chunk5QZM5EVPcjs.isEnabled.call(void 0, )) {
430
+ if (_chunkCNVK5RA3cjs.isEnabled.call(void 0, )) {
431
431
  try {
432
- advertised = _chunk5QZM5EVPcjs.patchListToolsResult.call(void 0, result);
432
+ advertised = _chunkCNVK5RA3cjs.patchListToolsResult.call(void 0, result);
433
433
  } catch (error) {
434
434
  _chunkWC573FCIcjs.logger.warn(
435
435
  `Brizz MCP: failed to patch tools/list schemas: ${String(error)}`
@@ -440,7 +440,7 @@ function wrapOnRequest(original, tracer) {
440
440
  try {
441
441
  emitSchemaSpansFromListResponse(
442
442
  advertised,
443
- _chunk5QZM5EVPcjs.resolveTransportSessionId.call(void 0, this),
443
+ _chunkCNVK5RA3cjs.resolveTransportSessionId.call(void 0, this),
444
444
  tracer
445
445
  );
446
446
  } catch (error) {
@@ -453,7 +453,7 @@ function wrapOnRequest(original, tracer) {
453
453
  }
454
454
  if (method !== METHOD_TOOLS_CALL) {
455
455
  hooks.onError = () => {
456
- _chunk5QZM5EVPcjs.stampAndPropagateSession.call(void 0, span, _chunk5QZM5EVPcjs.resolveSessionId.call(void 0, this, spanCtx), spanCtx);
456
+ _chunkCNVK5RA3cjs.stampAndPropagateSession.call(void 0, span, _chunkCNVK5RA3cjs.resolveSessionId.call(void 0, this, spanCtx), spanCtx);
457
457
  };
458
458
  }
459
459
  const wrappedHandler = (req, extra) => _api.context.with(
@@ -487,7 +487,7 @@ function answerSessionToolCall(protocol, request, tracer, args, original) {
487
487
  if (!handlers) {
488
488
  return original.apply(protocol, args);
489
489
  }
490
- const { id, result } = _chunk5QZM5EVPcjs.sessionToolResult.call(void 0, );
490
+ const { id, result } = _chunkCNVK5RA3cjs.sessionToolResult.call(void 0, );
491
491
  const started = safeStartServerSpan(tracer, request, protocol, { sessionId: id });
492
492
  const handler = () => started ? _api.context.with(started.spanCtx, () => result) : result;
493
493
  const hadEntry = handlers.has(METHOD_TOOLS_CALL);
@@ -577,8 +577,8 @@ function safeStartServerSpan(tracer, request, protocol, tracking = {}) {
577
577
  parentCtx
578
578
  );
579
579
  applyServerRequestAttributes(span, request, protocol);
580
- const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => ( _chunk5QZM5EVPcjs.resolveSessionId.call(void 0, protocol, parentCtx))) : void 0;
581
- const { context: sessCtx } = _chunk5QZM5EVPcjs.stampAndPropagateSession.call(void 0,
580
+ const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => ( _chunkCNVK5RA3cjs.resolveSessionId.call(void 0, protocol, parentCtx))) : void 0;
581
+ const { context: sessCtx } = _chunkCNVK5RA3cjs.stampAndPropagateSession.call(void 0,
582
582
  span,
583
583
  resolved,
584
584
  parentCtx,
@@ -634,7 +634,7 @@ function safeEnd(span) {
634
634
 
635
635
  // src/internal/instrumentation/mcp/version.ts
636
636
  var INSTRUMENTATION_NAME = "@brizz/sdk/mcp";
637
- var INSTRUMENTATION_VERSION = _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, );
637
+ var INSTRUMENTATION_VERSION = _chunkCNVK5RA3cjs.getSDKVersion.call(void 0, );
638
638
 
639
639
  // src/internal/instrumentation/mcp/instrumentation.ts
640
640
  var PROTOCOL_MODULE_NAME = "@modelcontextprotocol/sdk/shared/protocol.js";
@@ -8,7 +8,7 @@ import {
8
8
  resolveTransportSessionId,
9
9
  sessionToolResult,
10
10
  stampAndPropagateSession
11
- } from "./chunk-ZGX52S4U.js";
11
+ } from "./chunk-5HCG3JKU.js";
12
12
  import {
13
13
  brizzTracerProvider,
14
14
  extractTraceContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brizz/sdk",
3
- "version": "0.1.59",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "OpenTelemetry-based observability SDK for AI applications",
6
6
  "keywords": [
@@ -115,9 +115,9 @@
115
115
  "registry": "https://registry.npmjs.org/"
116
116
  },
117
117
  "devDependencies": {
118
- "@ai-sdk/anthropic": "^4.0.97",
119
- "@ai-sdk/openai": "^4.0.109",
120
- "@ai-sdk/otel": "^1.0.163",
118
+ "@ai-sdk/anthropic": "^4.0.99",
119
+ "@ai-sdk/openai": "^4.0.111",
120
+ "@ai-sdk/otel": "^1.0.165",
121
121
  "@arethetypeswrong/cli": "^0.18.5",
122
122
  "@arizeai/openinference-instrumentation-mcp": "^0.2.37",
123
123
  "@babel/core": "^8.1.0",
@@ -126,21 +126,21 @@
126
126
  "@changesets/changelog-github": "^1.0.1",
127
127
  "@changesets/cli": "^3.0.3",
128
128
  "@google/genai": "^2.32.0",
129
- "@langchain/core": "^1.3.4",
130
- "@langchain/langgraph": "^1.6.1",
129
+ "@langchain/core": "^1.3.5",
130
+ "@langchain/langgraph": "^1.7.2",
131
131
  "@modelcontextprotocol/sdk": "^1.32.2",
132
132
  "@traceloop/instrumentation-google-generativeai": "^0.27.0",
133
133
  "@traceloop/instrumentation-vertexai": "^0.27.0",
134
134
  "@types/jest": "^30.0.0",
135
135
  "@types/node": "^26.6.6",
136
136
  "@typesafe-ai/sdk": "^0.7.0",
137
- "ai": "^7.0.163",
137
+ "ai": "^7.0.165",
138
138
  "babel-jest": "^30.5.2",
139
139
  "babel-plugin-transform-import-meta": "^3.1.0",
140
140
  "jest": "^30.5.2",
141
141
  "jest-environment-jsdom": "^30.5.2",
142
- "openai": "^7.51.0",
143
- "oxlint": "^1.91.0",
142
+ "openai": "^7.53.0",
143
+ "oxlint": "^1.92.0",
144
144
  "prettier": "^3.9.10",
145
145
  "tsup": "^9.0.0",
146
146
  "typescript": "^7.0.2",
@@ -195,18 +195,18 @@
195
195
  "@arizeai/openinference-instrumentation-langchain": "^4.1.5",
196
196
  "@arizeai/openinference-instrumentation-openai": "^2.3.1",
197
197
  "@opentelemetry/api": "^1.10.0",
198
- "@opentelemetry/context-async-hooks": "^3.0.0",
199
- "@opentelemetry/core": "^3.0.0",
200
- "@opentelemetry/exporter-logs-otlp-http": "^0.300.0",
201
- "@opentelemetry/exporter-metrics-otlp-http": "^0.300.0",
202
- "@opentelemetry/exporter-trace-otlp-http": "^0.300.0",
203
- "@opentelemetry/exporter-trace-otlp-proto": "^0.300.0",
204
- "@opentelemetry/instrumentation": "^0.300.0",
205
- "@opentelemetry/resources": "^3.0.0",
206
- "@opentelemetry/sdk-logs": "^3.0.0",
207
- "@opentelemetry/sdk-metrics": "^3.0.0",
208
- "@opentelemetry/sdk-trace": "^3.0.0",
209
- "@opentelemetry/semantic-conventions": "^1.44.0",
198
+ "@opentelemetry/context-async-hooks": "^3.1.0",
199
+ "@opentelemetry/core": "^3.1.0",
200
+ "@opentelemetry/exporter-logs-otlp-http": "^0.301.0",
201
+ "@opentelemetry/exporter-metrics-otlp-http": "^0.301.0",
202
+ "@opentelemetry/exporter-trace-otlp-http": "^0.301.0",
203
+ "@opentelemetry/exporter-trace-otlp-proto": "^0.301.0",
204
+ "@opentelemetry/instrumentation": "^0.301.0",
205
+ "@opentelemetry/resources": "^3.1.0",
206
+ "@opentelemetry/sdk-logs": "^3.1.0",
207
+ "@opentelemetry/sdk-metrics": "^3.1.0",
208
+ "@opentelemetry/sdk-trace": "^3.1.0",
209
+ "@opentelemetry/semantic-conventions": "^1.45.0",
210
210
  "@traceloop/ai-semantic-conventions": "^0.27.0",
211
211
  "@traceloop/instrumentation-anthropic": "^0.27.0",
212
212
  "@traceloop/instrumentation-bedrock": "^0.27.0",