Skip to main content
Mastra v1 was released! Start new projects with v1 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