Cerbos JavaScript SDK
    Preparing search index...

    OpenTelemetry instrumentation for Cerbos clients.

    import { CerbosInstrumentation } from "@cerbos/opentelemetry";
    import { registerInstrumentations } from "@opentelemetry/instrumentation";

    registerInstrumentations({
    instrumentations: [...yourOtherInstrumentations, new CerbosInstrumentation()],
    });

    Implements

    • Instrumentation
    Index

    Constructors

    Properties

    instrumentationName: string = name

    Name of the instrumentation.

    instrumentationVersion: string = version

    Version of the instrumentation.

    Methods

    • Disables the instrumentation.

      Returns void

    • Enables the instrumentation.

      Returns void

    • Gets the instrumentation configuration.

      Returns InstrumentationConfig

    • Override the meter provider, which otherwise defaults to the global meter provider.

      Parameters

      • meterProvider: MeterProvider

      Returns void

    • Override the tracer provider, which otherwise defaults to the global tracer provider.

      Parameters

      • tracerProvider: TracerProvider

      Returns void