Documentation Index
Fetch the complete documentation index at: https://docs.latitude.so/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This guide shows you how to integrate Latitude Telemetry into an application that uses Mastra. Mastra has built-in observability support via@mastra/observability and @mastra/otel-exporter. It emits standard OpenTelemetry gen_ai.* spans, so you can point Mastra’s OTel exporter directly at Latitude’s OTLP ingestion endpoint — no Latitude SDK required.
You’ll keep using Mastra exactly as you do today. The exporter simply
sends your traces to Latitude alongside any other observability backend.
The Mastra integration is TypeScript only.
Requirements
- A Latitude account and API key
- A Latitude project slug
- A Node.js project that uses Mastra (
@mastra/core)
Steps
Seeing Your Traces
Once connected, traces appear automatically in Latitude:- Open your project in the Latitude dashboard
- Each execution shows input/output messages, model, token usage, latency, and errors
- Mastra agent runs, tool executions, and workflow steps appear as child spans