Socket
Book a DemoInstallSign in
Socket

@useparagon/opentelemetry-instrumentation-bull

Package Overview
Dependencies
Maintainers
26
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useparagon/opentelemetry-instrumentation-bull

Auto-instrumentation for the BullJs framework

0.0.9
latest
npmnpm
Version published
Weekly downloads
7.1K
-19.71%
Maintainers
26
Weekly downloads
 
Created
Source

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

NameBullMQ methodDescription
{QueueName.JobName} Queue.addQueue.add A new job is added to the queue
{QueueName} Queue.addBulkQueue.addBulk New jobs are added to the queue in bulk
{QueueName} Queue.getNextJobQueue.getNextJob getting next job from queue
{QueueName} Queue.cleanQueue.clean Cleaning jobs from queue
{QueueName} Queue.processJobQueue.processJob Job processing

Keywords

bull

FAQs

Package last updated on 01 Nov 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.