bugsnag / bugsnag-ruby

BugSnag error monitoring & reporting software for rails, sinatra, rack and ruby
https://docs.bugsnag.com/platforms/ruby
MIT License
246 stars 174 forks source link

Add support for Sidekiq 7 #785

Closed stevenharman closed 1 year ago

stevenharman commented 1 year ago

Sidekiq 7 has a new internal structure and middleware is now expected to include a module, depending on client vs server middleware. See: https://github.com/sidekiq/sidekiq/blob/main/docs/middleware.md

Goal

Support for Sidekiq 7, which has some new internals, including a slightly different middleware API. While we don't currently any of the things offered by the new API, this will make sure we don't break on accident.

Design

Only include the new middleware module if it's been defined, which will only happen for Sidekiq 7+.