@brizz/sdk 0.1.48 → 0.1.49

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.48";
12
+ return "0.1.49";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts
@@ -9,7 +9,7 @@ var _chunkGMZQ6N77cjs = require('./chunk-GMZQ6N77.cjs');
9
9
 
10
10
  // src/internal/version.ts
11
11
  function getSDKVersion() {
12
- return "0.1.48";
12
+ return "0.1.49";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@ var _chunkUNLNNKZ7cjs = require('./chunk-UNLNNKZ7.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkJDJLJ2V2cjs = require('./chunk-JDJLJ2V2.cjs');
8
+ var _chunkVAUO47L3cjs = require('./chunk-VAUO47L3.cjs');
9
9
 
10
10
 
11
11
 
@@ -92,6 +92,7 @@ var _instrumentationqdrant = require('@traceloop/instrumentation-qdrant');
92
92
  var _instrumentationtogether = require('@traceloop/instrumentation-together');
93
93
 
94
94
  // src/internal/instrumentation/langgraph/instrumentation.ts
95
+ var _module = require('module');
95
96
  var _api = require('@opentelemetry/api');
96
97
 
97
98
 
@@ -100,9 +101,16 @@ var _api = require('@opentelemetry/api');
100
101
 
101
102
  // src/internal/instrumentation/langgraph/attributes.ts
102
103
  var INSTRUMENTATION_NAME = "@brizz/sdk/langgraph";
103
- var INSTRUMENTATION_VERSION = _chunkJDJLJ2V2cjs.getSDKVersion.call(void 0, );
104
+ var INSTRUMENTATION_VERSION = _chunkVAUO47L3cjs.getSDKVersion.call(void 0, );
104
105
  var MODULE_NAME = "@langchain/langgraph";
105
106
  var SUPPORTED_VERSIONS = [">=0.2.0 <2"];
107
+ function isSupportedVersion(version) {
108
+ const [major, minor] = version.split(".").map(Number);
109
+ if (major === void 0 || minor === void 0 || Number.isNaN(major) || Number.isNaN(minor)) {
110
+ return false;
111
+ }
112
+ return major === 1 || major === 0 && minor >= 2;
113
+ }
106
114
  var CHECKPOINT_SPAN_NAME = "brizz.langgraph.checkpoint";
107
115
  var ATTR_CHECKPOINT_PARENT_ID = "brizz.checkpoint_parent_id";
108
116
  var ATTR_CHECKPOINT_ID = "brizz.checkpoint_id";
@@ -181,7 +189,8 @@ var LangGraphInstrumentation = class extends _instrumentation.InstrumentationBas
181
189
  * Patch a LangGraph module the caller already imported.
182
190
  *
183
191
  * The module-load hook above only fires for CommonJS requires, so an ESM or
184
- * bundled consumer reaches the instrumentation through here — via
192
+ * bundled consumer reaches the instrumentation through here — from
193
+ * `patchInstalledLangGraph`, or from
185
194
  * `Brizz.initialize({ instrumentModules: { langgraph } })`. Accepts either
186
195
  * the package root or its `pregel` subpath.
187
196
  */
@@ -199,6 +208,43 @@ var LangGraphInstrumentation = class extends _instrumentation.InstrumentationBas
199
208
  }
200
209
  }
201
210
  };
211
+ function patchInstalledLangGraph() {
212
+ let requireFromSdk;
213
+ let version;
214
+ try {
215
+ requireFromSdk = _module.createRequire.call(void 0, __filename);
216
+ version = requireFromSdk(`${MODULE_NAME}/package.json`).version;
217
+ } catch (error) {
218
+ _chunkWC573FCIcjs.logger.debug(`LangGraph not resolved, not patched: ${String(error)}`);
219
+ return;
220
+ }
221
+ if (!isSupportedVersion(version)) {
222
+ _chunkWC573FCIcjs.logger.debug(`LangGraph ${version} is outside ${SUPPORTED_VERSIONS.join(" ")}, not patched`);
223
+ return;
224
+ }
225
+ let instrumentation;
226
+ try {
227
+ instrumentation = new LangGraphInstrumentation({ enabled: false });
228
+ } catch (error) {
229
+ _chunkWC573FCIcjs.logger.debug(`LangGraph instrumentation not constructed: ${String(error)}`);
230
+ return;
231
+ }
232
+ try {
233
+ const loaded = requireFromSdk.cache[requireFromSdk.resolve(MODULE_NAME)];
234
+ if (loaded) {
235
+ instrumentation.manuallyInstrument(loaded.exports);
236
+ }
237
+ } catch (error) {
238
+ _chunkWC573FCIcjs.logger.debug(`LangGraph CJS build not patched: ${String(error)}`);
239
+ }
240
+ void (async () => {
241
+ try {
242
+ instrumentation.manuallyInstrument(await Promise.resolve().then(() => _interopRequireWildcard(require("@langchain/langgraph"))));
243
+ } catch (error) {
244
+ _chunkWC573FCIcjs.logger.debug(`LangGraph not patched: ${String(error)}`);
245
+ }
246
+ })();
247
+ }
202
248
  function patchPregelStream(proto, getTracer) {
203
249
  const target = proto;
204
250
  if (target[PATCHED_FLAG]) {
@@ -419,7 +465,7 @@ function loadGenAIInstrumentations() {
419
465
  function loadMCPInstrumentation() {
420
466
  void (async () => {
421
467
  try {
422
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-3E34LCRM.cjs")));
468
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-FWGIYACB.cjs")));
423
469
  const mcp = new MCPInstrumentation({ exceptionLogger });
424
470
  _instrumentation.registerInstrumentations.call(void 0, { instrumentations: [mcp] });
425
471
  _chunkWC573FCIcjs.logger.debug("Auto-loaded MCP instrumentation");
@@ -694,7 +740,7 @@ var SDK_LANGUAGE = "typescript";
694
740
 
695
741
 
696
742
  // src/internal/instrumentation/langchain.ts
697
- var _module = require('module');
743
+
698
744
 
699
745
  var SCOPE_NAME = "@arizeai/openinference-instrumentation-langchain";
700
746
  var PATCHED_MARKER = /* @__PURE__ */ Symbol.for("brizz.langchain.callbackManagerPatched");
@@ -915,7 +961,7 @@ var InstrumentationRegistry = (_class = class _InstrumentationRegistry {construc
915
961
  const mcpModules = this.manualModules.mcp;
916
962
  void (async () => {
917
963
  try {
918
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-3E34LCRM.cjs")));
964
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-FWGIYACB.cjs")));
919
965
  const instrumentation = new MCPInstrumentation({ exceptionLogger: exceptionLogger2 });
920
966
  instrumentation.manuallyInstrument(mcpModules);
921
967
  _chunkWC573FCIcjs.logger.debug("Manual instrumentation enabled for MCP");
@@ -2217,7 +2263,7 @@ var LoggingModule = (_class3 = class _LoggingModule {constructor() { _class3.pro
2217
2263
  const resourceAttributes = {
2218
2264
  ...config.resourceAttributes,
2219
2265
  "service.name": serviceName,
2220
- [BRIZZ_SDK_VERSION]: _chunkJDJLJ2V2cjs.getSDKVersion.call(void 0, ),
2266
+ [BRIZZ_SDK_VERSION]: _chunkVAUO47L3cjs.getSDKVersion.call(void 0, ),
2221
2267
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2222
2268
  };
2223
2269
  if (config.environment) {
@@ -2466,7 +2512,7 @@ var BrizzSpanExporter = (_class5 = class {
2466
2512
  const resourceAttrs = {
2467
2513
  ...config.resourceAttributes,
2468
2514
  "service.name": config.appName,
2469
- [BRIZZ_SDK_VERSION]: _chunkJDJLJ2V2cjs.getSDKVersion.call(void 0, ),
2515
+ [BRIZZ_SDK_VERSION]: _chunkVAUO47L3cjs.getSDKVersion.call(void 0, ),
2470
2516
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2471
2517
  };
2472
2518
  if (config.environment) {
@@ -2957,8 +3003,9 @@ var _Brizz = (_class7 = class __Brizz {constructor() { _class7.prototype.__init1
2957
3003
  */
2958
3004
  setupInstrumentation(options) {
2959
3005
  const registry = InstrumentationRegistry.getInstance();
2960
- _chunkJDJLJ2V2cjs.configure.call(void 0, resolveMcpSessionTracking(options.mcpSessionTracking));
3006
+ _chunkVAUO47L3cjs.configure.call(void 0, resolveMcpSessionTracking(options.mcpSessionTracking));
2961
3007
  patchInstalledCallbackManager();
3008
+ patchInstalledLangGraph();
2962
3009
  if (options.instrumentModules && Object.keys(options.instrumentModules).length > 0) {
2963
3010
  registry.setManualModules(options.instrumentModules);
2964
3011
  }
@@ -2981,7 +3028,7 @@ var _Brizz = (_class7 = class __Brizz {constructor() { _class7.prototype.__init1
2981
3028
  const resourceAttributes = {
2982
3029
  ...resolvedConfig.resourceAttributes,
2983
3030
  "service.name": resolvedConfig.appName,
2984
- [BRIZZ_SDK_VERSION]: _chunkJDJLJ2V2cjs.getSDKVersion.call(void 0, ),
3031
+ [BRIZZ_SDK_VERSION]: _chunkVAUO47L3cjs.getSDKVersion.call(void 0, ),
2985
3032
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2986
3033
  };
2987
3034
  if (resolvedConfig.environment) {
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  configure,
7
7
  getSDKVersion
8
- } from "./chunk-L4P4RJT5.js";
8
+ } from "./chunk-HTFR2LKY.js";
9
9
  import {
10
10
  DEFAULT_LOG_LEVEL,
11
11
  LogLevel,
@@ -92,6 +92,7 @@ import { QdrantInstrumentation } from "@traceloop/instrumentation-qdrant";
92
92
  import { TogetherInstrumentation } from "@traceloop/instrumentation-together";
93
93
 
94
94
  // src/internal/instrumentation/langgraph/instrumentation.ts
95
+ import { createRequire } from "module";
95
96
  import { SpanStatusCode, context, createContextKey, trace } from "@opentelemetry/api";
96
97
  import {
97
98
  InstrumentationBase,
@@ -103,6 +104,13 @@ var INSTRUMENTATION_NAME = "@brizz/sdk/langgraph";
103
104
  var INSTRUMENTATION_VERSION = getSDKVersion();
104
105
  var MODULE_NAME = "@langchain/langgraph";
105
106
  var SUPPORTED_VERSIONS = [">=0.2.0 <2"];
107
+ function isSupportedVersion(version) {
108
+ const [major, minor] = version.split(".").map(Number);
109
+ if (major === void 0 || minor === void 0 || Number.isNaN(major) || Number.isNaN(minor)) {
110
+ return false;
111
+ }
112
+ return major === 1 || major === 0 && minor >= 2;
113
+ }
106
114
  var CHECKPOINT_SPAN_NAME = "brizz.langgraph.checkpoint";
107
115
  var ATTR_CHECKPOINT_PARENT_ID = "brizz.checkpoint_parent_id";
108
116
  var ATTR_CHECKPOINT_ID = "brizz.checkpoint_id";
@@ -181,7 +189,8 @@ var LangGraphInstrumentation = class extends InstrumentationBase {
181
189
  * Patch a LangGraph module the caller already imported.
182
190
  *
183
191
  * The module-load hook above only fires for CommonJS requires, so an ESM or
184
- * bundled consumer reaches the instrumentation through here — via
192
+ * bundled consumer reaches the instrumentation through here — from
193
+ * `patchInstalledLangGraph`, or from
185
194
  * `Brizz.initialize({ instrumentModules: { langgraph } })`. Accepts either
186
195
  * the package root or its `pregel` subpath.
187
196
  */
@@ -199,6 +208,43 @@ var LangGraphInstrumentation = class extends InstrumentationBase {
199
208
  }
200
209
  }
201
210
  };
211
+ function patchInstalledLangGraph() {
212
+ let requireFromSdk;
213
+ let version;
214
+ try {
215
+ requireFromSdk = createRequire(import.meta.url);
216
+ version = requireFromSdk(`${MODULE_NAME}/package.json`).version;
217
+ } catch (error) {
218
+ logger.debug(`LangGraph not resolved, not patched: ${String(error)}`);
219
+ return;
220
+ }
221
+ if (!isSupportedVersion(version)) {
222
+ logger.debug(`LangGraph ${version} is outside ${SUPPORTED_VERSIONS.join(" ")}, not patched`);
223
+ return;
224
+ }
225
+ let instrumentation;
226
+ try {
227
+ instrumentation = new LangGraphInstrumentation({ enabled: false });
228
+ } catch (error) {
229
+ logger.debug(`LangGraph instrumentation not constructed: ${String(error)}`);
230
+ return;
231
+ }
232
+ try {
233
+ const loaded = requireFromSdk.cache[requireFromSdk.resolve(MODULE_NAME)];
234
+ if (loaded) {
235
+ instrumentation.manuallyInstrument(loaded.exports);
236
+ }
237
+ } catch (error) {
238
+ logger.debug(`LangGraph CJS build not patched: ${String(error)}`);
239
+ }
240
+ void (async () => {
241
+ try {
242
+ instrumentation.manuallyInstrument(await import("@langchain/langgraph"));
243
+ } catch (error) {
244
+ logger.debug(`LangGraph not patched: ${String(error)}`);
245
+ }
246
+ })();
247
+ }
202
248
  function patchPregelStream(proto, getTracer) {
203
249
  const target = proto;
204
250
  if (target[PATCHED_FLAG]) {
@@ -419,7 +465,7 @@ function loadGenAIInstrumentations() {
419
465
  function loadMCPInstrumentation() {
420
466
  void (async () => {
421
467
  try {
422
- const { MCPInstrumentation } = await import("./mcp-RLTZLXHY.js");
468
+ const { MCPInstrumentation } = await import("./mcp-LIAXZGBN.js");
423
469
  const mcp = new MCPInstrumentation({ exceptionLogger });
424
470
  registerInstrumentations({ instrumentations: [mcp] });
425
471
  logger.debug("Auto-loaded MCP instrumentation");
@@ -694,7 +740,7 @@ import { QdrantInstrumentation as QdrantInstrumentation2 } from "@traceloop/inst
694
740
  import { TogetherInstrumentation as TogetherInstrumentation2 } from "@traceloop/instrumentation-together";
695
741
 
696
742
  // src/internal/instrumentation/langchain.ts
697
- import { createRequire } from "module";
743
+ import { createRequire as createRequire2 } from "module";
698
744
  import { context as context2 } from "@opentelemetry/api";
699
745
  var SCOPE_NAME = "@arizeai/openinference-instrumentation-langchain";
700
746
  var PATCHED_MARKER = /* @__PURE__ */ Symbol.for("brizz.langchain.callbackManagerPatched");
@@ -754,7 +800,7 @@ function patchInstalledCallbackManager() {
754
800
  logger.debug(`LangChain callback manager not patched: ${String(error)}`);
755
801
  }
756
802
  try {
757
- const requireFromSdk = createRequire(import.meta.url);
803
+ const requireFromSdk = createRequire2(import.meta.url);
758
804
  patchCallbackManagerModule(requireFromSdk("@langchain/core/callbacks/manager"));
759
805
  } catch (error) {
760
806
  logger.debug(`LangChain CJS callback manager not patched: ${String(error)}`);
@@ -915,7 +961,7 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
915
961
  const mcpModules = this.manualModules.mcp;
916
962
  void (async () => {
917
963
  try {
918
- const { MCPInstrumentation } = await import("./mcp-RLTZLXHY.js");
964
+ const { MCPInstrumentation } = await import("./mcp-LIAXZGBN.js");
919
965
  const instrumentation = new MCPInstrumentation({ exceptionLogger: exceptionLogger2 });
920
966
  instrumentation.manuallyInstrument(mcpModules);
921
967
  logger.debug("Manual instrumentation enabled for MCP");
@@ -2959,6 +3005,7 @@ var _Brizz = class __Brizz {
2959
3005
  const registry = InstrumentationRegistry.getInstance();
2960
3006
  configure(resolveMcpSessionTracking(options.mcpSessionTracking));
2961
3007
  patchInstalledCallbackManager();
3008
+ patchInstalledLangGraph();
2962
3009
  if (options.instrumentModules && Object.keys(options.instrumentModules).length > 0) {
2963
3010
  registry.setManualModules(options.instrumentModules);
2964
3011
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkJDJLJ2V2cjs = require('./chunk-JDJLJ2V2.cjs');
11
+ var _chunkVAUO47L3cjs = require('./chunk-VAUO47L3.cjs');
12
12
 
13
13
 
14
14
  var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
@@ -387,14 +387,14 @@ function wrapOnRequest(original, tracer) {
387
387
  return original.apply(this, args);
388
388
  }
389
389
  const method = request.method;
390
- if (method === METHOD_TOOLS_CALL && _chunkJDJLJ2V2cjs.isSessionToolCall.call(void 0, request)) {
390
+ if (method === METHOD_TOOLS_CALL && _chunkVAUO47L3cjs.isSessionToolCall.call(void 0, request)) {
391
391
  return answerSessionToolCall(this, request, tracer, args, original);
392
392
  }
393
393
  const handler = _nullishCoalesce(handlers.get(method), () => ( this.fallbackRequestHandler));
394
394
  if (!handler) {
395
395
  return original.apply(this, args);
396
396
  }
397
- const tracking = _chunkJDJLJ2V2cjs.isEnabled.call(void 0, ) && method === METHOD_TOOLS_CALL ? _chunkJDJLJ2V2cjs.popTrackingArguments.call(void 0, request) : {};
397
+ const tracking = _chunkVAUO47L3cjs.isEnabled.call(void 0, ) && method === METHOD_TOOLS_CALL ? _chunkVAUO47L3cjs.popTrackingArguments.call(void 0, request) : {};
398
398
  const started = safeStartServerSpan(tracer, request, this, tracking);
399
399
  if (!started) {
400
400
  return original.apply(this, args);
@@ -404,9 +404,9 @@ function wrapOnRequest(original, tracer) {
404
404
  if (method === METHOD_TOOLS_LIST) {
405
405
  hooks.onResult = (result) => {
406
406
  let advertised = result;
407
- if (_chunkJDJLJ2V2cjs.isEnabled.call(void 0, )) {
407
+ if (_chunkVAUO47L3cjs.isEnabled.call(void 0, )) {
408
408
  try {
409
- advertised = _chunkJDJLJ2V2cjs.patchListToolsResult.call(void 0, result);
409
+ advertised = _chunkVAUO47L3cjs.patchListToolsResult.call(void 0, result);
410
410
  } catch (error) {
411
411
  _chunkWC573FCIcjs.logger.warn(
412
412
  `Brizz MCP: failed to patch tools/list schemas: ${String(error)}`
@@ -417,7 +417,7 @@ function wrapOnRequest(original, tracer) {
417
417
  try {
418
418
  emitSchemaSpansFromListResponse(
419
419
  advertised,
420
- _chunkJDJLJ2V2cjs.resolveTransportSessionId.call(void 0, this),
420
+ _chunkVAUO47L3cjs.resolveTransportSessionId.call(void 0, this),
421
421
  tracer
422
422
  );
423
423
  } catch (error) {
@@ -430,7 +430,7 @@ function wrapOnRequest(original, tracer) {
430
430
  }
431
431
  if (method !== METHOD_TOOLS_CALL) {
432
432
  hooks.onError = () => {
433
- _chunkJDJLJ2V2cjs.stampAndPropagateSession.call(void 0, span, _chunkJDJLJ2V2cjs.resolveSessionId.call(void 0, this, spanCtx), spanCtx);
433
+ _chunkVAUO47L3cjs.stampAndPropagateSession.call(void 0, span, _chunkVAUO47L3cjs.resolveSessionId.call(void 0, this, spanCtx), spanCtx);
434
434
  };
435
435
  }
436
436
  const wrappedHandler = (req, extra) => _api.context.with(
@@ -464,7 +464,7 @@ function answerSessionToolCall(protocol, request, tracer, args, original) {
464
464
  if (!handlers) {
465
465
  return original.apply(protocol, args);
466
466
  }
467
- const { id, result } = _chunkJDJLJ2V2cjs.sessionToolResult.call(void 0, );
467
+ const { id, result } = _chunkVAUO47L3cjs.sessionToolResult.call(void 0, );
468
468
  const started = safeStartServerSpan(tracer, request, protocol, { sessionId: id });
469
469
  const handler = () => started ? _api.context.with(started.spanCtx, () => result) : result;
470
470
  const hadEntry = handlers.has(METHOD_TOOLS_CALL);
@@ -554,8 +554,8 @@ function safeStartServerSpan(tracer, request, protocol, tracking = {}) {
554
554
  parentCtx
555
555
  );
556
556
  applyServerRequestAttributes(span, request, protocol);
557
- const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => ( _chunkJDJLJ2V2cjs.resolveSessionId.call(void 0, protocol, parentCtx))) : void 0;
558
- const { context: sessCtx } = _chunkJDJLJ2V2cjs.stampAndPropagateSession.call(void 0,
557
+ const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => ( _chunkVAUO47L3cjs.resolveSessionId.call(void 0, protocol, parentCtx))) : void 0;
558
+ const { context: sessCtx } = _chunkVAUO47L3cjs.stampAndPropagateSession.call(void 0,
559
559
  span,
560
560
  resolved,
561
561
  parentCtx,
@@ -611,7 +611,7 @@ function safeEnd(span) {
611
611
 
612
612
  // src/internal/instrumentation/mcp/version.ts
613
613
  var INSTRUMENTATION_NAME = "@brizz/sdk/mcp";
614
- var INSTRUMENTATION_VERSION = _chunkJDJLJ2V2cjs.getSDKVersion.call(void 0, );
614
+ var INSTRUMENTATION_VERSION = _chunkVAUO47L3cjs.getSDKVersion.call(void 0, );
615
615
 
616
616
  // src/internal/instrumentation/mcp/instrumentation.ts
617
617
  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-L4P4RJT5.js";
11
+ } from "./chunk-HTFR2LKY.js";
12
12
  import {
13
13
  logger
14
14
  } from "./chunk-Y4HNUX3Q.js";
@@ -2,6 +2,7 @@ export declare const INSTRUMENTATION_NAME = "@brizz/sdk/langgraph";
2
2
  export declare const INSTRUMENTATION_VERSION: string;
3
3
  export declare const MODULE_NAME = "@langchain/langgraph";
4
4
  export declare const SUPPORTED_VERSIONS: string[];
5
+ export declare function isSupportedVersion(version: string): boolean;
5
6
  export declare const CHECKPOINT_SPAN_NAME = "brizz.langgraph.checkpoint";
6
7
  export declare const ATTR_CHECKPOINT_PARENT_ID = "brizz.checkpoint_parent_id";
7
8
  export declare const ATTR_CHECKPOINT_ID = "brizz.checkpoint_id";
@@ -1 +1 @@
1
- export { LangGraphInstrumentation } from './instrumentation.js';
1
+ export { LangGraphInstrumentation, patchInstalledLangGraph } from './instrumentation.js';
@@ -8,4 +8,5 @@ export declare class LangGraphInstrumentation extends InstrumentationBase<Instru
8
8
  manuallyInstrument(moduleExports: unknown): void;
9
9
  private applyPatch;
10
10
  }
11
+ export declare function patchInstalledLangGraph(): void;
11
12
  export declare function patchPregelStream(proto: IPregelLike, getTracer: () => Tracer): boolean;
@@ -2,6 +2,7 @@ export declare const INSTRUMENTATION_NAME = "@brizz/sdk/langgraph";
2
2
  export declare const INSTRUMENTATION_VERSION: string;
3
3
  export declare const MODULE_NAME = "@langchain/langgraph";
4
4
  export declare const SUPPORTED_VERSIONS: string[];
5
+ export declare function isSupportedVersion(version: string): boolean;
5
6
  export declare const CHECKPOINT_SPAN_NAME = "brizz.langgraph.checkpoint";
6
7
  export declare const ATTR_CHECKPOINT_PARENT_ID = "brizz.checkpoint_parent_id";
7
8
  export declare const ATTR_CHECKPOINT_ID = "brizz.checkpoint_id";
@@ -1 +1 @@
1
- export { LangGraphInstrumentation } from './instrumentation.js';
1
+ export { LangGraphInstrumentation, patchInstalledLangGraph } from './instrumentation.js';
@@ -8,4 +8,5 @@ export declare class LangGraphInstrumentation extends InstrumentationBase<Instru
8
8
  manuallyInstrument(moduleExports: unknown): void;
9
9
  private applyPatch;
10
10
  }
11
+ export declare function patchInstalledLangGraph(): void;
11
12
  export declare function patchPregelStream(proto: IPregelLike, getTracer: () => Tracer): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brizz/sdk",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "type": "module",
5
5
  "description": "OpenTelemetry-based observability SDK for AI applications",
6
6
  "keywords": [
@@ -59,7 +59,8 @@
59
59
  "prerelease:exit": "changeset pre exit",
60
60
  "check:types-package": "attw --pack . --entrypoints . eve google-genai --ignore-rules no-resolution",
61
61
  "check:types-consumer": "node scripts/check-consumer-types.mjs",
62
- "check:types": "pnpm run check:types-package && pnpm run check:types-consumer"
62
+ "check:types": "pnpm run check:types-package && pnpm run check:types-consumer",
63
+ "check:esm-langgraph": "node scripts/check-esm-langgraph.mjs"
63
64
  },
64
65
  "exports": {
65
66
  ".": {