Skip to content
← Back to Changelog

Wednesday, January 31st 2024

Instrument and trace applications with the OpenTelemetry collector

Posted by

Avatar for dvoytenko

Dima Voytenko

Principal Engineer

Avatar for jj4

JJ Kasper

Software Engineer

Avatar for andrewgadzikvercel

Andrew Gadzik

Software Engineer

Avatar for gdborton

Gary Borton

Engineering Manager

Vercel and Next.js provide increased observability of your applications through OpenTelemetry.

import { registerOTel } from '@vercel/otel';
export function register() {
registerOTel({ serviceName: 'acme-co' });
Using the Vercel OTEL package with Next.js.

v1.0 of @vercel/otel now supports:

  • Support for Node.js and Edge runtimes
  • Telemetry context propagation, including W3C Trace Context
  • Fetch API instrumentation with context propagation
  • Support and auto-configuration for the Vercel OTEL collector
  • Enhanced metadata reporting
  • Sampling support
  • Custom tracing exporter support
  • Batched trace exporting

Learn more in our documentation or start using the package with Next.js.