Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@useparagon/opentelemetry-instrumentation-bull

Package Overview
Dependencies
Maintainers
0
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
  • npm
  • Socket score

Version published
Weekly downloads
6.6K
increased by998.17%
Maintainers
0
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc