Instrument and trace applications with the OpenTelemetry collector

Authors

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

instrumentation.ts
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.