Skip to main content
Mastra v1 is coming in January 2026. Get ahead by starting new projects with the beta or upgrade your existing project today.

Mastra.setTelemetry()

The .setTelemetry() method is used to set the telemetry configuration for all components in the Mastra instance. This method accepts a single telemetry configuration object.

Usage exampleDirect link to Usage example

mastra.setTelemetry({ export: { type: "console" } });

ParametersDirect link to Parameters

telemetry:

OtelConfig
The telemetry configuration object to set for all components.

ReturnsDirect link to Returns

This method does not return a value.

On this page