@mastra/langsmith 1.0.0-beta.13 → 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.
Files changed (2) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
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
+
3
33
  ## 1.0.0-beta.13
4
34
 
5
35
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/langsmith",
3
- "version": "1.0.0-beta.13",
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.12"
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
- "@internal/types-builder": "0.0.28",
41
+ "@mastra/core": "1.0.0-beta.24",
42
42
  "@observability/test-utils": "0.0.1",
43
43
  "@internal/lint": "0.0.53",
44
- "@mastra/core": "1.0.0-beta.23"
44
+ "@internal/types-builder": "0.0.28"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@mastra/core": ">=1.0.0-0 <2.0.0-0"