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

0.0.9 • Public • Published

OpenTelemetry Bull Instrumentation

This module provides automatic tracing instrumentation for [Bull][https://github.com/OptimalBits/bull].

Installation

npm install --save @useparagon/opentelemetry-instrumentation-bull

Usage

OpenTelemetry Bullmq Instrumentation allows the user to automatically collect trace data from Bullmq jobs and workers 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 { BullInstrumentation } = require('@useparagon/opentelemetry-instrumentation-bull');

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

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

Emitted Spans

Name BullMQ method Description
{QueueName.JobName} Queue.add Queue.add A new job is added to the queue
{QueueName} Queue.addBulk Queue.addBulk New jobs are added to the queue in bulk
{QueueName} Queue.getNextJob Queue.getNextJob getting next job from queue
{QueueName} Queue.clean Queue.clean Cleaning jobs from queue
{QueueName} Queue.processJob Queue.processJob Job processing

Package Sidebar

Install

npm i @useparagon/opentelemetry-instrumentation-bull

Weekly Downloads

6,198

Version

0.0.9

License

Apache-2.0

Unpacked Size

33 kB

Total Files

20

Last publish

Collaborators

  • luis-ramirez
  • adriantucci-paragon
  • tai-paragon
  • artavia-paragon
  • raul-paragon
  • carlos.garcia506
  • francisco.rossi
  • abhisheksharma201
  • shivam_kumar027
  • anuragbhati
  • richard-paragon
  • sunny9899
  • rahulgoyal
  • nautidpk
  • deepanshu-pg
  • vikash_paragon
  • nipun.dawar
  • juanpa-a
  • ahasseyp
  • loren.sanz
  • ayushparagon
  • paragonbot
  • anakshiant-p
  • ted-paragon
  • ethan-paragon
  • ishmaelparagon