latitude-telemetry
Installation
SKILL.md
Latitude Telemetry
Add or review Latitude Telemetry without disrupting existing observability. Latitude is OpenTelemetry-based, so compose with the app's current OTel/Sentry/Datadog setup instead of replacing it.
Entry points
Two ways in; both do the same audit → instrument → verify work:
- Invoked directly — the common case. The user already has a Latitude account and API key and wants to instrument an app: their first project under that account, or an additional one. They may already know the project slug, or you infer it from the repo or discover it via the Latitude MCP/CLI. Source config as described below; do not run the zero-account bootstrap.
- Delegated from
latitude-setup— the from-scratch, no-account path. That skill has already provisioned a temporary account and writtenLATITUDE_API_KEY/LATITUDE_PROJECT_SLUGto.env, so config is in place — skip the MCP discovery detour and go straight to audit → instrument.
Either way, the work isn't done until you have verified that real traces land in Latitude (workflow step 6).
First decision: redirect existing OTLP, or add the SDK?
Before installing anything, determine how the app already emits telemetry — the simplest correct integration is often no new dependency:
- The app already exports OpenTelemetry traces — a generic OTLP exporter, or a GenAI instrumentation like Vercel AI SDK telemetry (
experimental_telemetry), OpenInference, Traceloop/OpenLLMetry, or hand-rolled OTel spans? Prefer repointing that exporter at Latitude rather than installing the SDK. It's a config-only change — set the OTLP traces endpoint tohttps://ingest.latitude.so/v1/tracesand add the auth + project headers (see "Other targets → Generic OTLP" below). It preserves the app's existing span conventions and adds zero new instrumentation. Installing the Latitude SDK on top would re-instrument the same model calls and can duplicate or clobber those spans — so don't, unless the redirect can't carry something you need. - The app has no LLM telemetry yet (or only vendor SDKs with no OTLP export)? Use the Latitude SDK (TypeScript / Python sections below), or attach a
LatitudeSpanProcessorto an existing OTel provider.