Menu

Instrument and trace applications with the OpenTelemetry collector - Vercel
📰

Instrument and trace applications with the OpenTelemetry collector - Vercel

Vercel News·Dima Voytenko·6 days ago
#4f02vT2a
#vercel#otel#next#registerotel#using
Reading 0:00
15s threshold

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.