Traceloop
Traceloop is an OpenTelemetry-native observability platform specifically designed for LLM applications.
Configuration
To use Traceloop with Mastra, configure these environment variables:
OTEL_EXPORTER_OTLP_ENDPOINT=https://api.traceloop.com/v1/traces
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer your_api_key, x-traceloop-destination-id=your_destination_id"
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",
},
},
});
Dashboard
Access your traces and analytics in the Traceloop dashboard at app.traceloop.com