Skip to main content

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 example

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

Parameters

telemetry:

OtelConfig
The telemetry configuration object to set for all components.

Returns

This method does not return a value.