mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix "Statsd.options" example (#5075)
This commit is contained in:
parent
e093c1b0f9
commit
2890f81103
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ Please see [sidekiq.org](https://sidekiq.org/) for more details and how to buy.
|
|||
- Allow job-specific options in Statsd metrics [#5037]
|
||||
```ruby
|
||||
# add to your initializer
|
||||
Sidekiq::Server::Middleware::Statsd.options = ->(klass, job, q) do
|
||||
Sidekiq::Middleware::Server::Statsd.options = ->(klass, job, q) do
|
||||
{tags: ["worker:#{klass}", "queue:#{q}"]}.tap do |h|
|
||||
h[:tags] << "tenant:#{job['tenant_id']}" if job["tenant_id"]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue