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.

Traceloop

Traceloop is an OpenTelemetry-native observability platform specifically designed for LLM applications.

ConfigurationDirect link to Configuration

To use Traceloop with Mastra, configure these environment variables:

OTEL_EXPORTER_OTLP_ENDPOINT=https://api.traceloop.com
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer your_api_key, x-traceloop-destination-id=your_destination_id"

ImplementationDirect link to Implementation

Here's how to configure Mastra to use Traceloop:

import { Mastra } from "@mastra/core";

export const mastra = new Mastra({
// ... other config
telemetry: {
serviceName: "your-service-name",
enabled: true,
export: {
type: "otlp",
},
},
});

DashboardDirect link to Dashboard

Access your traces and analytics in the Traceloop dashboard at app.traceloop.com

On this page