@cerbos/opentelemetry
v0.5.4
Published
OpenTelemetry instrumentation for the @cerbos/grpc and @cerbos/http client libraries
Downloads
3,181
Readme
@cerbos/opentelemetry
OpenTelemetry instrumentation for the gRPC and HTTP client libraries.
Prerequisites
- Node.js 18+
Installation
$ npm install @cerbos/opentelemetry
Example usage
Register CerbosInstrumentation
with your other OpenTelemetry instrumentation:
import { CerbosInstrumentation } from "@cerbos/opentelemetry";
import { registerInstrumentations } from "@opentelemetry/instrumentation";
registerInstrumentations({
instrumentations: [...yourOtherInstrumentations, new CerbosInstrumentation()],
});