M
Mastra•2w ago
į²¼

Getting "Mastra telemetry is deprecated" when telemetry is not enabled.

Getting this consistently in the terminal, not sure why: WARN [2025-11-26 18:17:16.556 +0000] (Mastra): If you are using a custom instrumentation file or want to disable this warning, set the globalThis._MASTRATELEMETRY variable to true in your instrumentation file. WARN [2025-11-26 18:17:16.562 +0000] (Mastra): Mastra telemetry is deprecated and will be removed on the Nov 4th release. Instead use AI Tracing. More info can be found here: https://github.com/mastra-ai/mastra/issues/8577 and here: https://mastra.ai/en/docs/observability/ai-tracing/overview I may have had the old telemetry enabled before, but now my mastra config looks like this:
export const mastra = new Mastra({
workflows: {
...
},
agents: {
...
},
storage: new PostgresStore({
connectionString: process.env.DATABASE_URL!,
schemaName: 'mastra',
}),
logger: new PinoLogger({
name: 'Mastra',
level: 'info',
}),
observability: {
configs: {
default: {
serviceName: "...",
exporters: [
new LangSmithExporter({
apiKey: process.env.LANGSMITH_API_KEY!,
apiUrl: process.env.LANGSMITH_ENDPOINT!,
}),
new CloudExporter(),
// new DefaultExporter(),
],
},
},
},
});
export const mastra = new Mastra({
workflows: {
...
},
agents: {
...
},
storage: new PostgresStore({
connectionString: process.env.DATABASE_URL!,
schemaName: 'mastra',
}),
logger: new PinoLogger({
name: 'Mastra',
level: 'info',
}),
observability: {
configs: {
default: {
serviceName: "...",
exporters: [
new LangSmithExporter({
apiKey: process.env.LANGSMITH_API_KEY!,
apiUrl: process.env.LANGSMITH_ENDPOINT!,
}),
new CloudExporter(),
// new DefaultExporter(),
],
},
},
},
});
Is the error just sent regardless of if I'm using old telemetry config? Will silence it using the instructions in the error for now.
GitHub
Proposal: Deprecate OTEL-Based Telemetry System Ā· Issue #8577 Ā· m...
Summary Deprecate the legacy OpenTelemetry-based telemetry system (packages/core/src/telemetry) in favor of the new AI Tracing system (packages/core/src/ai-tracing). The new system provides special...
AI Tracing | Observability | Mastra Docs
Set up AI tracing for Mastra applications
2 Replies
Mastra Triager
Mastra Triager•2w ago
šŸ“ Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10549 šŸ” If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly. šŸ™ Thank you for helping us improve Mastra!
Eric
Eric•2w ago
you need to specifically disable the old telemetry: export const mastra = new Mastra({ workflows: { ... }, agents: { ... }, storage: new PostgresStore({ connectionString: process.env.DATABASE_URL!, schemaName: 'mastra', }), logger: new PinoLogger({ name: 'Mastra', level: 'info', }), telemetry: { enabled: false }, observability: { configs: { default: { serviceName: "...", exporters: [ new LangSmithExporter({ apiKey: process.env.LANGSMITH_API_KEY!, apiUrl: process.env.LANGSMITH_ENDPOINT!, }), new CloudExporter(), // new DefaultExporter(), ], }, }, }, });

Did you find this page helpful?