@cerbos/opentelemetry
v0.9.0
Published
OpenTelemetry instrumentation for the @cerbos/grpc and @cerbos/http client libraries
Readme
@cerbos/opentelemetry
OpenTelemetry instrumentation for the gRPC and HTTP client libraries.
Prerequisites
- Node.js 20+
Installation
$ npm install @cerbos/opentelemetryExample usage
Register CerbosInstrumentation with your other OpenTelemetry instrumentation:
import { CerbosInstrumentation } from "@cerbos/opentelemetry";
import { registerInstrumentations } from "@opentelemetry/instrumentation";
registerInstrumentations({
instrumentations: [...yourOtherInstrumentations, new CerbosInstrumentation()],
});CommonJS support
This package is ESM-only, but may be required from CommonJS modules in Node.js versions 20.19.5+, 22.15+, and 24+.
