OpenTelemetry instrumentation for the gRPC and HTTP client libraries.
- Node.js 18+
$ 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()],
});