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

0.1.0 • Public • Published

@eventstore/opentelemetry

license Github action CI workflow

This module provides automatic tracing instrumentation for EventStore-Client-NodeJS.

Compatible with OpenTelemetry JS API and SDK 1.0+.

Installation

npm install --save @eventstore/opentelemetry

Supported Versions

  • [6.x]

It's likely that the instrumentation would support earlier versions of EventStoreDB, but this has not been tested.

Usage

OpenTelemetry EventStoreDB Instrumentation allows the user to automatically collect trace data from append and subscription operations and export them to the backend of choice.

To load the instrumentation, specify it in the instrumentations list to registerInstrumentations. There is currently no configuration option.

const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const { EventStoreDBInstrumentation } = require('@eventstore/opentelemetry');

const provider = new NodeTracerProvider();
provider.register();

registerInstrumentations({
  instrumentations: [
    new EventStoreDBInstrumentation(),
  ],
});

Useful links

Support

Information on support can be found on our website: Event Store Support

Communities

Contributing

Refer to our contribution guidelines.

Package Sidebar

Install

npm i @eventstore/opentelemetry

Weekly Downloads

261

Version

0.1.0

License

Apache-2.0

Unpacked Size

27.8 kB

Total Files

21

Last publish

Collaborators

  • w1am
  • alexeyzimarev
  • hayleycampbell
  • ylorph-eventstore
  • georgepayne
  • yoeight