Integrations overview
Mastra observability integrations control where observability data goes and how it is transformed on the way out. Use integrations to store data in Mastra storage, send it to Mastra platform, connect to external observability providers, or redact exported span data.
When to use integrationsDirect link to When to use integrations
- Keep observability available in Studio with
MastraStorageExporter. - Send hosted observability data to Mastra platform with
MastraPlatformExporter. - Forward traces to external providers such as Datadog, Langfuse, or OpenTelemetry backends.
- Redact sensitive values before they leave the runtime.
Choose an integration pathDirect link to Choose an integration path
- Studio workflow: Start with Mastra Storage.
- Hosted Mastra workflow: Add Mastra platform.
- External observability stack: Choose one or more exporter pages under the sidebar
Exporterssection. - Existing distributed trace context: Use a bridge, then add exporters as needed.
ExportersDirect link to Exporters
Exporters send observability data to a destination:
- Mastra Storage: Persist observability data for Studio.
- Mastra platform: Send hosted observability data to Mastra platform.
- External providers: Use exporter pages for Datadog, Langfuse, OpenTelemetry, and other supported platforms.
BridgesDirect link to Bridges
Bridges connect Mastra to an existing distributed tracing context:
- OpenTelemetry bridge: Integrate Mastra with an existing OpenTelemetry trace.
- Datadog bridge: Integrate Mastra with Datadog tracing and LLM Observability flows.
ProcessorsDirect link to Processors
Processors transform or redact spans before export:
- Sensitive Data Filter: Redact sensitive fields before spans leave the runtime.