@mastra/deployer 0.3.5-alpha.0 → 0.10.0

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.
@@ -2,7 +2,6 @@ import {
2
2
  NodeSDK,
3
3
  getNodeAutoInstrumentations,
4
4
  ATTR_SERVICE_NAME,
5
- Resource,
6
5
  ParentBasedSampler,
7
6
  TraceIdRatioBasedSampler,
8
7
  AlwaysOnSampler,
@@ -10,6 +9,7 @@ import {
10
9
  OTLPHttpExporter,
11
10
  OTLPGrpcExporter,
12
11
  CompositeExporter,
12
+ resourceFromAttributes,
13
13
  } from '@mastra/core/telemetry/otel-vendor';
14
14
  import { telemetry } from './telemetry-config.mjs';
15
15
 
@@ -44,6 +44,9 @@ async function getExporters(config) {
44
44
  if (!config.disableLocalExport) {
45
45
  exporters.push(new OTLPHttpExporter({
46
46
  url: `http://localhost:${process.env.PORT ?? 4111}/api/telemetry`,
47
+ headers: process.env.MASTRA_DEV ? {
48
+ 'x-mastra-dev-playground': 'true',
49
+ } : {},
47
50
  }));
48
51
  }
49
52
 
@@ -71,7 +74,7 @@ const exporters = await getExporters(telemetry);
71
74
  const compositeExporter = new CompositeExporter(exporters);
72
75
 
73
76
  const sdk = new NodeSDK({
74
- resource: new Resource({
77
+ resource: resourceFromAttributes({
75
78
  [ATTR_SERVICE_NAME]: telemetry.serviceName || 'default-service',
76
79
  }),
77
80
  sampler,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.3.5-alpha.0",
3
+ "version": "0.10.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -107,8 +107,7 @@
107
107
  "rollup-plugin-node-externals": "^8.0.0",
108
108
  "typescript-paths": "^1.5.1",
109
109
  "zod": "^3.24.3",
110
- "@mastra/core": "^0.9.5-alpha.0",
111
- "@mastra/server": "^2.0.5-alpha.0"
110
+ "@mastra/server": "^0.10.0"
112
111
  },
113
112
  "devDependencies": {
114
113
  "@hono/node-server": "^1.13.8",
@@ -127,8 +126,12 @@
127
126
  "type-fest": "^4.37.0",
128
127
  "typescript": "^5.8.2",
129
128
  "vitest": "^2.1.9",
130
- "@mastra/mcp": "^0.5.1-alpha.0",
131
- "@internal/lint": "0.0.5"
129
+ "@internal/lint": "0.0.6",
130
+ "@mastra/core": "0.10.0",
131
+ "@mastra/mcp": "^0.10.0"
132
+ },
133
+ "peerDependencies": {
134
+ "@mastra/core": "^0.10.0"
132
135
  },
133
136
  "scripts": {
134
137
  "build": "tsup src/index.ts src/build/index.ts src/server/index.ts src/build/bundler.ts src/build/analyze.ts src/bundler/index.ts src/services/index.ts src/validator/loader.ts src/validator/custom-resolver.ts --format esm,cjs --clean --experimental-dts --treeshake=smallest --splitting --publicDir",