Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow controlling trace injection behaviour in queue gems #2476

Open
sl0thentr0py opened this issue Nov 27, 2024 · 0 comments
Open

Allow controlling trace injection behaviour in queue gems #2476

sl0thentr0py opened this issue Nov 27, 2024 · 0 comments

Comments

@sl0thentr0py
Copy link
Member

@Linuus doing this in the clockwork process only should work as a workaround if you need it urgently.

Sidekiq.configure_client do |config|
  config.client_middleware do |chain|
    chain.remove Sentry::Sidekiq::SentryContextClientMiddleware
  end
end

This will remove the trace header injection but only in the clockwork process. Make sure you don't put it in a general configuration.

For the longer term, I think I will add a configuration parameter to the sidekiq gem which lets you control the trace header injection behaviour.

Originally posted by @sl0thentr0py in #2391

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant