Installation
Choose your backend. Every page is the same six steps, from the packages to one trace per turn in that backend.
Pick your backend. Each page is the same six steps, and the telemetry pages after it show what differs for that backend. Your framework, picked in Get started, picks the routes inside the steps.
Any OTLP backend
Grafana, Honeycomb, SigNoz, Axiom, Jaeger or your own Collector, from the environment.
Arize
Arize AX or Phoenix, through OpenInference’s span processor.
Braintrust
Its span processor, or the environment alone.
Datadog
The agentless OTLP intake, or the provider of dd-trace.
Helicone
The chat’s model, logged on its way to the provider.
IBM Instana
Agentless, or through the host agent, as protobuf.
Laminar
OTLP from the environment, as JSON or protobuf.
Langfuse
Its span processor, or the environment alone.
LangSmith
OTLP from the environment, as protobuf.
LangWatch
Its own exporter, with the AI SDK’s spans.
New Relic
OTLP from the environment, as protobuf.
PostHog
OTLP from the environment, or its exporter.
Sentry
Sentry’s own OpenTelemetry provider.
Traceloop
OTLP from the environment, as protobuf.
Vercel
The provider @vercel/otel registers.
W&B Weave
OTLP from the environment, as protobuf only.
The six steps
- Install the packages: the telemetry layer, its OpenTelemetry packages, and the backend’s own package where it has one.
- Set the environment: the backend’s URL and key, as the standard
OTEL_*variables or the backend’s own. - Add the server layer:
lib/observability.ts, passed to the chat route. - Add the relay route:
/api/telemetry, where the page posts its spans, with a per-IP limit. - Observe the page: one component next to the chat.
- Check it in the backend: one message, one trace.
Without a backend, you can still count runs and failed tools in your own analytics:
onAgentRun needs no telemetry package.