feat(node): Add BullMQ integration#21777
Draft
JPeer264 wants to merge 1 commit into
Draft
Conversation
1ec4099 to
1247441
Compare
1247441 to
212f9d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #12956
closes JS-89
Description
This adds telemetry for BullMQ. It only piggybacks on the
telemetryoption. It has metrics, tracing with span links between producer and consumerIt can be used as following:
It is the same usage as the BullMQ OTel package: https://docs.bullmq.io/guide/telemetry/getting-started
To make this an integration the types were vendored in and based on that the integration was done.
OP decisions
The consumer spans generate
queue.taskwhere the producer emitsqueue.submit, this should be reflecting our span operations. I didn't usequeue.task.bullmq, like it is for Celery - but this can be changed if wanted.Sentry traces / metrics
Example metrics: https://sentry-sdks.sentry.io/explore/metrics/?end=2026-06-25T10%3A08%3A00&metric=%7B%22metric%22%3A%7B%22name%22%3A%22bullmq.jobs.completed%22%2C%22type%22%3A%22counter%22%2C%22unit%22%3A%22none%22%7D%2C%22query%22%3A%22%22%2C%22aggregateFields%22%3A%5B%7B%22yAxes%22%3A%5B%22sum%28value%2Cbullmq.jobs.completed%2Ccounter%2Cnone%29%22%5D%7D%5D%2C%22aggregateSortBys%22%3A%5B%7B%22field%22%3A%22sum%28value%2Cbullmq.jobs.completed%2Ccounter%2Cnone%29%22%2C%22kind%22%3A%22desc%22%7D%5D%2C%22sortBys%22%3A%5B%7B%22field%22%3A%22timestamp%22%2C%22kind%22%3A%22desc%22%7D%5D%2C%22mode%22%3A%22samples%22%7D&project=4510555608449024&start=2026-06-25T10%3A00%3A00
Example trace (with span link to the consumer): https://sentry-sdks.sentry.io/explore/traces/trace/375c2cf7901af9c4a2ae660b59e6a2d6/?node=span-d34047629120efaf&project=4510555608449024&source=traces&statsPeriod=15m&targetId=09a7742d453a8b68×tamp=1782382478