@mastra/deployer 0.2.5 → 0.2.6-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/dist/_tsup-dts-rollup.d.cts +61 -7
- package/dist/_tsup-dts-rollup.d.ts +61 -7
- package/dist/build/bundler.cjs +3 -3
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +9 -9
- package/dist/build/index.js +2 -2
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-7GYBZLVN.cjs → chunk-2JXRI3DC.cjs} +3 -3
- package/dist/{chunk-OT6UKL2S.cjs → chunk-AE4CVAPK.cjs} +11 -0
- package/dist/{chunk-PUX2FDGX.js → chunk-C6LYG5EA.js} +1 -1
- package/dist/{chunk-KLVSED7T.js → chunk-DUK5PGPQ.js} +1 -1
- package/dist/{chunk-XEFBJH3T.js → chunk-IKPL4RGG.js} +11 -0
- package/dist/{chunk-NXBTVZHO.cjs → chunk-OE6LAGEI.cjs} +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.js +3 -3
- package/dist/server/index.cjs +390 -2583
- package/dist/server/index.js +379 -2572
- package/dist/templates/instrumentation-template.js +4 -19
- package/package.json +4 -3
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { createLogger } from '@mastra/core/logger';
|
|
2
|
-
import { LibSQLStore } from '@mastra/core/storage/libsql';
|
|
3
|
-
import { OTLPStorageExporter } from '@mastra/core/telemetry';
|
|
4
1
|
import {
|
|
5
2
|
NodeSDK,
|
|
6
3
|
getNodeAutoInstrumentations,
|
|
@@ -41,11 +38,11 @@ function getSampler(config) {
|
|
|
41
38
|
|
|
42
39
|
async function getExporter(config) {
|
|
43
40
|
if (config.export?.type === 'otlp') {
|
|
44
|
-
if(config.export?.protocol ===
|
|
41
|
+
if (config.export?.protocol === 'grpc') {
|
|
45
42
|
return new OTLPGrpcExporter({
|
|
46
43
|
url: config.export.endpoint,
|
|
47
44
|
headers: config.export.headers,
|
|
48
|
-
})
|
|
45
|
+
});
|
|
49
46
|
}
|
|
50
47
|
return new OTLPHttpExporter({
|
|
51
48
|
url: config.export.endpoint,
|
|
@@ -54,19 +51,8 @@ async function getExporter(config) {
|
|
|
54
51
|
} else if (config.export?.type === 'custom') {
|
|
55
52
|
return config.export.exporter;
|
|
56
53
|
} else {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
url: 'file:.mastra/mastra.db',
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
await storage.init();
|
|
63
|
-
|
|
64
|
-
return new OTLPStorageExporter({
|
|
65
|
-
logger: createLogger({
|
|
66
|
-
name: 'telemetry',
|
|
67
|
-
level: 'silent',
|
|
68
|
-
}),
|
|
69
|
-
storage,
|
|
54
|
+
return new OTLPHttpExporter({
|
|
55
|
+
url: `http://localhost:${process.env.PORT ?? 4111}/api/telemetry`,
|
|
70
56
|
});
|
|
71
57
|
}
|
|
72
58
|
}
|
|
@@ -91,4 +77,3 @@ process.on('SIGTERM', () => {
|
|
|
91
77
|
// do nothing
|
|
92
78
|
});
|
|
93
79
|
});
|
|
94
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"author": "",
|
|
76
76
|
"license": "ISC",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@babel/core": "^7.26.
|
|
78
|
+
"@babel/core": "^7.26.10",
|
|
79
79
|
"@babel/helper-module-imports": "^7.25.9",
|
|
80
80
|
"@neon-rs/load": "^0.1.82",
|
|
81
81
|
"@rollup/plugin-alias": "^5.1.1",
|
|
@@ -95,7 +95,8 @@
|
|
|
95
95
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
96
96
|
"typescript-paths": "^1.5.1",
|
|
97
97
|
"zod": "^3.24.2",
|
|
98
|
-
"@mastra/
|
|
98
|
+
"@mastra/server": "^0.0.1-alpha.0",
|
|
99
|
+
"@mastra/core": "^0.8.0-alpha.2"
|
|
99
100
|
},
|
|
100
101
|
"devDependencies": {
|
|
101
102
|
"@hono/node-server": "^1.13.8",
|