opentelemetry-instrumentation-bull 0.0.7
Install from the command line:
Learn more about npm packages
$ npm install @useparagon/opentelemetry-instrumentation-bull@0.0.7
Install via package.json:
"@useparagon/opentelemetry-instrumentation-bull": "0.0.7"
About this version
This module provides automatic tracing instrumentation for [Bull][https://github.com/OptimalBits/bull].
npm install --save @useparagon/opentelemetry-instrumentation-bull
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(),
],
});
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 |
Details
- opentelemetry-instrumentation-bull
- useparagon
- about 1 year ago
- Apache-2.0
- 27 dependencies
Assets
- opentelemetry-instrumentation-bull-0.0.7.tgz
Download activity
- Total downloads 36,672
- Last 30 days 0
- Last week 0
- Today 0