---
title: Installation
description: "Choose your backend. Every page is the same six steps, from the packages to one trace per turn in that backend."
sidebar:
  hidden: true
---

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](/docs/installation), picks the routes inside the steps.

{/* The backends, one card per installation page (docs/observability/installation/<id>.mdx). Edit them here, once:
   each title is the backend's <Tab> title on the observability pages and the name its page saves. Brand marks are
   Simple Icons 16.38.1 (CC0) paths; a backend Simple Icons has no mark for gets a Lucide icon, never a logo. */}

**[Any OTLP backend](/docs/observability/installation/otlp)**

Grafana, Honeycomb, SigNoz, Axiom, Jaeger or your own Collector, from the environment.

**[Arize](/docs/observability/installation/arize)**

Arize AX or Phoenix, through OpenInference's span processor.

**[Braintrust](/docs/observability/installation/braintrust)**

Its span processor, or the environment alone.

**[Datadog](/docs/observability/installation/datadog)**

The agentless OTLP intake, or the provider of `dd-trace`.

**[Helicone](/docs/observability/installation/helicone)**

The chat's model, logged on its way to the provider.

**[IBM Instana](/docs/observability/installation/instana)**

Agentless, or through the host agent, as protobuf.

**[Laminar](/docs/observability/installation/laminar)**

OTLP from the environment, as JSON or protobuf.

**[Langfuse](/docs/observability/installation/langfuse)**

Its span processor, or the environment alone.

**[LangSmith](/docs/observability/installation/langsmith)**

OTLP from the environment, as protobuf.

**[LangWatch](/docs/observability/installation/langwatch)**

Its own exporter, with the AI SDK's spans.

**[New Relic](/docs/observability/installation/new-relic)**

OTLP from the environment, as protobuf.

**[PostHog](/docs/observability/installation/posthog)**

OTLP from the environment, or its exporter.

**[Sentry](/docs/observability/installation/sentry)**

Sentry's own OpenTelemetry provider.

**[Traceloop](/docs/observability/installation/traceloop)**

OTLP from the environment, as protobuf.

**[Vercel](/docs/observability/installation/vercel)**

The provider `@vercel/otel` registers.

**[W&B Weave](/docs/observability/installation/weave)**

OTLP from the environment, as protobuf only.

## The six steps

1. **Install the packages**: the telemetry layer, its OpenTelemetry packages, and the backend's own package where it
   has one.
2. **Set the environment**: the backend's URL and key, as the standard `OTEL_*` variables or the backend's own.
3. **Add the server layer**: `lib/observability.ts`, passed to the chat route.
4. **Add the relay route**: `/api/telemetry`, where the page posts its spans, with a per-IP limit.
5. **Observe the page**: one component next to the chat.
6. **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`](/docs/observability/on-agent-run) needs no telemetry package.
