Wednesday, January 31st 2024
Instrument and trace applications with the OpenTelemetry collector
Posted by
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' });}
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.