SidekiqでchainされているMiddlewareの順番が知りたい

2022/02/25に公開

起動時に -v オプションを付けるとログに流れてくる。

$ bundle exec sidekiq -v -C config/sidekiq.yml

...
2022-02-25T10:30:08.571Z pid=87339 tid=1y6j DEBUG: Client Middleware: NewRelic::SidekiqInstrumentation::Client, HogeLogger::Client
2022-02-25T10:30:08.572Z pid=87339 tid=1y6j DEBUG: Server Middleware: Foo::Middleware::Server, NewRelic::SidekiqInstrumentation::Server, HogeLogger::Server
...

from: https://github-wiki-see.page/m/mperham/sidekiq/wiki/Middleware

Sidekiq will print out the configured client and server middleware chains when started with -v.

GitHubで編集を提案

Discussion