Menu

@vercel/otel 1.3.0 - Vercel
📰

@vercel/otel 1.3.0 - Vercel

Vercel News·Dima Voytenko·5 days ago
#UB4iLLLl
#vercel#next#otel#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.3.0 of @vercel/otel now providing custom resource and operation names for Datadog to satisfy their cardinality requirements. You can group related URL paths for a given span to reduce cardinality and associated usage.

For example, /products/hoodie can be mapped to /products/[name].

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