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.

New Relic

New Relic is a comprehensive observability platform that supports OpenTelemetry (OTLP) for full-stack monitoring.

ConfigurationDirect link to Configuration

To use New Relic with Mastra via OTLP, configure these environment variables:

OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net:4317
OTEL_EXPORTER_OTLP_HEADERS="api-key=your_license_key"

ImplementationDirect link to Implementation

Here's how to configure Mastra to use New Relic:

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

View your telemetry data in the New Relic One dashboard at one.newrelic.com

On this page