0.5.4 • Published 8 months ago

@cerbos/opentelemetry v0.5.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

@cerbos/opentelemetry

npm

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()],
});

Further reading

Get help