Cerbos JavaScript SDK
    Preparing search index...

    Module @cerbos/opentelemetry - v0.8.1

    @cerbos/opentelemetry

    npm

    OpenTelemetry instrumentation for the gRPC and HTTP client libraries.

    • Node.js 20+
    $ npm install @cerbos/opentelemetry
    

    Register CerbosInstrumentation with your other OpenTelemetry instrumentation:

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

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

    This package is ESM-only, but may be required from CommonJS modules in Node.js versions 20.19.5+, 22.15+, and 24+.

    Classes

    CerbosInstrumentation

    Type aliases

    CerbosInstrumentationConfig