Skip to content

feat(bullmq): add telemetry support for workers #2585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

noeljackson
Copy link

Add telemetry configuration option to worker and queue initialization. The telemetry setting is now properly passed from queue options to the underlying worker and queue instances.

This should solve: #2524

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

telemetry options is not passed correctly

Issue Number: #2524

What is the new behavior?

telemetry option is passed.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Add telemetry configuration option to worker initialization, allowing for
better monitoring and observability of BullMQ workers. The telemetry
setting is now properly passed from queue options to the underlying worker
instances.
This commit adds support for the OpenTelemetry feature in BullMQ v5:

- Fix: correctl `telemetry` property for Workers and Queues
- Fix test mocks to properly implement the Telemetry interface with required
  methods for tracer and contextManager
- Include examples for mocking telemetry objects in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant