Skip to content

QueueEventsProducer/QueueEvents support for telemetry #8

@swhiteman

Description

@swhiteman

Not sure if custom Queue Events are supposed to work with OT/Jaeger or not, but right now I don't see anything (though the custom event stream is working).

Producer side:

const { QueueEventsProducer } = require("bullmq");
const { BullMQOtel } = require("bullmq-otel");

const queueEventsProducer = new QueueEventsProducer("custom", {
    telemetry: new BullMQOtel('simple-guide'),
    connection : dotEnv.$.redis.connection
});

queueEventsProducer.publishEvent({
    eventName: "customExample",
    custom: 'value1'
})

Consumer side:

const { QueueEvents } = require("bullmq");
const { BullMQOtel } = require("bullmq-otel");

const queueEvents = new QueueEvents("custom", {
    telemetry: new BullMQOtel('simple-guide'),
    connection : dotEnv.$.redis.connection
});

queueEvents.on('customExample', async ({ custom }) => {
    console.log("custom",custom);
});

Output from consumer is custom value1 as expected but Jaeger doesn't show anything (OT overlay & Jaeger are working for standard queue.add and worker).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions