Function registerOTel

  • Registers the OpenTelemetry SDK with the specified service name and the default configuration. Should be included in the instrumentation.ts. For example:

    import { registerOTel } from "@vercel/otel";

    export function register() {
    registerOTel({
    serviceName: "my-app",
    ...
    });
    }

    Parameters

    • Optional optionsOrServiceName: string | Configuration

      Either a service name as a string or a configuration object.

    Returns void