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

1.0.8 • Public • Published

@imqueue/opentelemetry-instrumentation-imqueue


This module provides automatic opentelemetry instrumentation for the @imqueue


What Is This?

This library provides a clean way to integrate @imqueue/rpc with OpenTelemetry.

Install

npm i --save @imqueue/opentelemtry-instrumentation-imqueue

Usage & API

OpenTelemetry Imqueue Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.

const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const {
    ImqueueInstrumentation,
} = require('@imqueue/opentelemetry-instrumentation-imqueue');

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

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

Contributing

Any contributions are greatly appreciated. Feel free to fork, propose PRs, open issues, do whatever you think may be helpful to this project. PRs which passes all tests and do not brake tslint rules are first-class candidates to be accepted!

License

ISC

Happy Coding!

Package Sidebar

Install

npm i @imqueue/opentelemetry-instrumentation-imqueue

Weekly Downloads

132

Version

1.0.8

License

ISC

Unpacked Size

33.2 kB

Total Files

21

Last publish

Collaborators

  • serhiy.greench
  • mikhus