Socket
Book a DemoInstallSign in
Socket

@eventstore/opentelemetry

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eventstore/opentelemetry

[![license][license-badge]][license-badge-url] [![Github action CI workflow][ci-badge]][ci-badge-url]

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
176
-1.12%
Maintainers
0
Weekly downloads
 
Created
Source

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

Support

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

Communities

Contributing

Refer to our contribution guidelines.

Keywords

EventStore

FAQs

Package last updated on 02 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts