Registers the OpenTelemetry SDK with the specified service name and the default configuration. Should be included in the instrumentation.ts. For example:
instrumentation.ts
import { registerOTel } from "@vercel/otel";export function register() { registerOTel({ serviceName: "my-app", ... });} Copy
import { registerOTel } from "@vercel/otel";export function register() { registerOTel({ serviceName: "my-app", ... });}
Optional
Either a service name as a string or a configuration object.
Registers the OpenTelemetry SDK with the specified service name and the default configuration. Should be included in the
instrumentation.ts. For example: