@cerbos/opentelemetry
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@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

Package Sidebar

Install

npm i @cerbos/opentelemetry

Weekly Downloads

668

Version

0.5.0

License

Apache-2.0

Unpacked Size

45.3 kB

Total Files

28

Last publish

Collaborators

  • ahaines
  • alexolivier
  • cerbosdev