Vercel — AI · · 1 min read

Always-on tracing for production and preview traffic

Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.

With always-on tracing, you can now debug your real user requests without reproducing them.

Always-on tracing continuously collects traces from your production and preview traffic. Unlike session tracing, which only captures requests from your own browser, it samples your live traffic.

You control what's collected with sampling rules. Each rule sets a trace rate for an environment (All, Production, or Preview), optionally scoped to a path prefix like /checkout. Nothing is collected until you add a rule, so you pay only for what you choose to trace.

Configuring sampling rules for a project.Configuring sampling rules for a project.
Configuring sampling rules for a project.

Infrastructure and outbound fetch spans are captured automatically. To add framework and custom spans, instrument your app with @vercel/otel.

To view a trace, open the Logs or run vercel traces get <request-id>.

Always-on tracing is is now in beta and available to teams on all plans. Tracing is priced at $0.50 per 1M span units. Traces follow your runtime log retention: 1 hour on Hobby, 1 day on Pro and 3 days on Enterprise.

Get started by adding a rule in Settings → Tracing or from the settings icon in Logs. Learn more in the documentation.

Contributors

Amelia Charles

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from Vercel — AI