@mastra/langsmith 1.0.0-beta.12 → 1.0.0-beta.14
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 +38 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @mastra/langsmith
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added `flush()` method to observability exporters and instances for serverless environments ([#12003](https://github.com/mastra-ai/mastra/pull/12003))
|
|
8
|
+
|
|
9
|
+
This feature allows flushing buffered spans without shutting down the exporter, which is useful in serverless environments like Vercel's fluid compute where runtime instances can be reused across multiple requests.
|
|
10
|
+
|
|
11
|
+
**New API:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
// Flush all exporters via the observability instance
|
|
15
|
+
const observability = mastra.getObservability();
|
|
16
|
+
await observability.flush();
|
|
17
|
+
|
|
18
|
+
// Or flush individual exporters
|
|
19
|
+
const exporters = observability.getExporters();
|
|
20
|
+
await exporters[0].flush();
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Why this matters:**
|
|
24
|
+
|
|
25
|
+
In serverless environments, you may need to ensure all spans are exported before the runtime instance is terminated, while keeping the exporter active for future requests. Unlike shutdown(), flush() does not release resources or prevent future exports.
|
|
26
|
+
|
|
27
|
+
Closes #11372
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [[`1dbd8c7`](https://github.com/mastra-ai/mastra/commit/1dbd8c729fb6536ec52f00064d76b80253d346e9), [`1dbd8c7`](https://github.com/mastra-ai/mastra/commit/1dbd8c729fb6536ec52f00064d76b80253d346e9), [`c59e13c`](https://github.com/mastra-ai/mastra/commit/c59e13c7688284bd96b2baee3e314335003548de), [`f9a2509`](https://github.com/mastra-ai/mastra/commit/f9a25093ea72d210a5e52cfcb3bcc8b5e02dc25c), [`7a010c5`](https://github.com/mastra-ai/mastra/commit/7a010c56b846a313a49ae42fccd3d8de2b9f292d)]:
|
|
30
|
+
- @mastra/core@1.0.0-beta.24
|
|
31
|
+
- @mastra/observability@1.0.0-beta.13
|
|
32
|
+
|
|
33
|
+
## 1.0.0-beta.13
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [[`c8417b4`](https://github.com/mastra-ai/mastra/commit/c8417b41d9f3486854dc7842d977fbe5e2166264), [`dd4f34c`](https://github.com/mastra-ai/mastra/commit/dd4f34c78cbae24063463475b0619575c415f9b8)]:
|
|
38
|
+
- @mastra/core@1.0.0-beta.23
|
|
39
|
+
- @mastra/observability@1.0.0-beta.12
|
|
40
|
+
|
|
3
41
|
## 1.0.0-beta.12
|
|
4
42
|
|
|
5
43
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/langsmith",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.14",
|
|
4
4
|
"description": "Langsmith observability provider for Mastra - includes tracing and future observability features",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"langsmith": ">=0.3.79",
|
|
28
|
-
"@mastra/observability": "1.0.0-beta.
|
|
28
|
+
"@mastra/observability": "1.0.0-beta.13"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@ai-sdk/openai": "^2.0.35",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"typescript": "^5.9.3",
|
|
39
39
|
"vitest": "4.0.16",
|
|
40
40
|
"zod": "^3.25.76",
|
|
41
|
+
"@mastra/core": "1.0.0-beta.24",
|
|
42
|
+
"@observability/test-utils": "0.0.1",
|
|
41
43
|
"@internal/lint": "0.0.53",
|
|
42
|
-
"@internal/types-builder": "0.0.28"
|
|
43
|
-
"@mastra/core": "1.0.0-beta.22",
|
|
44
|
-
"@observability/test-utils": "0.0.1"
|
|
44
|
+
"@internal/types-builder": "0.0.28"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|