@mastra/observability 1.16.4-alpha.1 → 1.16.4-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/observability
2
2
 
3
+ ## 1.16.4-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed RequestContext serialization to skip excluded spans and use its span-safe representation for exported traces. ([#20231](https://github.com/mastra-ai/mastra/pull/20231))
8
+
9
+ - Updated dependencies [[`4844167`](https://github.com/mastra-ai/mastra/commit/4844167cff2d5ec5004e94edd34970833040fa3f), [`5faf93f`](https://github.com/mastra-ai/mastra/commit/5faf93f03e19daea394b9e2a923f2e4f833407f2), [`80ad891`](https://github.com/mastra-ai/mastra/commit/80ad891f8cd10379aa5b5af7510c763783b2ab56), [`a1cb98d`](https://github.com/mastra-ai/mastra/commit/a1cb98d11990b560b98482292a1f34aa1a2d9092), [`598ad82`](https://github.com/mastra-ai/mastra/commit/598ad82d41c41389a686338a1d0e50b7400e1938), [`1fd6aad`](https://github.com/mastra-ai/mastra/commit/1fd6aad1ea4a9d32f65efa832307c35e981a4c0a)]:
10
+ - @mastra/core@1.56.0-alpha.4
11
+
3
12
  ## 1.16.4-alpha.1
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -2541,7 +2541,6 @@ var BaseSpan = class {
2541
2541
  ...options.parent?.metadata,
2542
2542
  ...options.metadata
2543
2543
  } : void 0, this.deepCleanOptions);
2544
- if (options.requestContext && options.requestContext.size() > 0) this.requestContext = deepClean(options.requestContext.all, this.deepCleanOptions);
2545
2544
  this.parent = options.parent;
2546
2545
  this.startTime = options.startTime ?? /* @__PURE__ */ new Date();
2547
2546
  this.observabilityInstance = observabilityInstance;
@@ -2558,7 +2557,7 @@ var BaseSpan = class {
2558
2557
  return;
2559
2558
  }
2560
2559
  this.attributes = deepClean(options.attributes, this.deepCleanOptions) || {};
2561
- if (options.requestContext && options.requestContext.size() > 0) this.requestContext = deepClean(options.requestContext.all, this.deepCleanOptions);
2560
+ if (options.requestContext && options.requestContext.size() > 0) this.requestContext = deepClean(options.requestContext, this.deepCleanOptions);
2562
2561
  if (this.isEvent) this.output = deepClean(options.output, this.deepCleanOptions);
2563
2562
  else this.input = deepClean(options.input, this.deepCleanOptions);
2564
2563
  }