@mastra/observability 1.9.2-alpha.1 → 1.10.0-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 +20 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/model-tracing.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/observability
|
|
2
2
|
|
|
3
|
+
## 1.10.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Changed `MODEL_CHUNK` `tool-result` span `output` handling. ([#15495](https://github.com/mastra-ai/mastra/pull/15495))
|
|
8
|
+
|
|
9
|
+
**What changed**
|
|
10
|
+
- `MODEL_CHUNK` spans for `tool-result` now omit `output` for locally executed tools.
|
|
11
|
+
- `TOOL_CALL` remains the canonical span for locally executed tool result payloads.
|
|
12
|
+
- `MODEL_CHUNK` spans for provider-executed `tool-result` chunks still include `output`.
|
|
13
|
+
- `MODEL_CHUNK` metadata still includes `toolCallId`, `toolName`, and `providerExecuted`.
|
|
14
|
+
|
|
15
|
+
**Why**
|
|
16
|
+
This reduces duplicate tool result payloads in traces without dropping provider-emitted tool results that may not have a matching `TOOL_CALL` span.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`8786a61`](https://github.com/mastra-ai/mastra/commit/8786a61fa54ba265f85eeff9985ca39863d18bb6), [`8fb2405`](https://github.com/mastra-ai/mastra/commit/8fb2405138f2d208b7962ad03f121ca25bcc28c5)]:
|
|
21
|
+
- @mastra/core@1.26.0-alpha.7
|
|
22
|
+
|
|
3
23
|
## 1.9.2-alpha.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -19152,14 +19152,16 @@ var ModelSpanTracker = class {
|
|
|
19152
19152
|
dynamic,
|
|
19153
19153
|
providerExecuted,
|
|
19154
19154
|
providerMetadata,
|
|
19155
|
-
//
|
|
19155
|
+
// Keep provider-executed results on MODEL_CHUNK because they come
|
|
19156
|
+
// from the model/provider stream and may not have a sibling TOOL_CALL span.
|
|
19157
|
+
// For locally executed tools, the canonical payload lives on TOOL_CALL.
|
|
19156
19158
|
result} = chunk.payload || {};
|
|
19157
19159
|
const metadata = { toolCallId, toolName };
|
|
19158
19160
|
if (isError !== void 0) metadata.isError = isError;
|
|
19159
19161
|
if (dynamic !== void 0) metadata.dynamic = dynamic;
|
|
19160
19162
|
if (providerExecuted !== void 0) metadata.providerExecuted = providerExecuted;
|
|
19161
19163
|
if (providerMetadata !== void 0) metadata.providerMetadata = providerMetadata;
|
|
19162
|
-
this.#createEventSpan(chunk.type, result, { metadata });
|
|
19164
|
+
this.#createEventSpan(chunk.type, providerExecuted ? result : void 0, { metadata });
|
|
19163
19165
|
break;
|
|
19164
19166
|
}
|
|
19165
19167
|
}
|