@mastra/observability 1.16.6-alpha.2 → 1.16.6-alpha.3
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 +9 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- 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,14 @@
|
|
|
1
1
|
# @mastra/observability
|
|
2
2
|
|
|
3
|
+
## 1.16.6-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Preserved the provider response model on completed model inference spans. ([#21154](https://github.com/mastra-ai/mastra/pull/21154))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`2e4624e`](https://github.com/mastra-ai/mastra/commit/2e4624edb6917e61249cb60ee377735e7af7e4a9), [`e6534fa`](https://github.com/mastra-ai/mastra/commit/e6534fab031216f6cb48c4c9907cbfdce9d60bc6), [`7fdcaa6`](https://github.com/mastra-ai/mastra/commit/7fdcaa66105d64290f9b14432a12ec99f39c4d3a), [`cfd0d9e`](https://github.com/mastra-ai/mastra/commit/cfd0d9ec77ec3c69dd96f79cdb579e03d79f22ce), [`d9d93b2`](https://github.com/mastra-ai/mastra/commit/d9d93b25e4a65ad5fa153fa35be7ed149c8d587f)]:
|
|
10
|
+
- @mastra/core@1.58.0-alpha.12
|
|
11
|
+
|
|
3
12
|
## 1.16.6-alpha.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2081,13 +2081,15 @@ var ModelSpanTracker = class {
|
|
|
2081
2081
|
if (!this.#currentInferenceSpan) return;
|
|
2082
2082
|
const { usage: rawUsage, ...otherOutput } = payload.output;
|
|
2083
2083
|
const usage = extractUsageMetrics(rawUsage, payload.metadata?.providerMetadata);
|
|
2084
|
+
const responseModel = typeof payload.metadata?.modelId === "string" ? payload.metadata.modelId : void 0;
|
|
2084
2085
|
this.#currentInferenceSpan.end({
|
|
2085
2086
|
output: otherOutput,
|
|
2086
2087
|
attributes: {
|
|
2087
2088
|
usage,
|
|
2088
2089
|
finishReason: payload.stepResult.reason,
|
|
2089
2090
|
warnings: payload.stepResult.warnings,
|
|
2090
|
-
completionStartTime: this.#completionStartTime
|
|
2091
|
+
completionStartTime: this.#completionStartTime,
|
|
2092
|
+
...responseModel?.trim() ? { responseModel } : {}
|
|
2091
2093
|
}
|
|
2092
2094
|
});
|
|
2093
2095
|
this.#currentInferenceSpan = void 0;
|