Telemetry
import { QueuePro } from '@taskforcesh/bullmq-pro';
import { BullMQOtel } from 'bullmq-otel';
// Initialize a Pro queue using BullMQ-Otel
const queue = new QueuePro('myProQueue', {
connection,
telemetry: new BullMQOtel('guide'),
});
await queue.add(
'myJob',
{ data: 'myData' },
{
attempts: 2,
backoff: 1000,
group: {
id: 'myGroupId',
},
},
);Last updated
Was this helpful?