Skip to content

Commit

Permalink
Add sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Nov 5, 2021
1 parent 93226b7 commit be80d62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Pro-Changes.md
Expand Up @@ -9,6 +9,14 @@ HEAD

- Fix thread-safety issue with Sidekiq::Pro::Config
- Allow job-specific options in Statsd metrics [#5037]
```ruby
# add to your initializer
Sidekiq::Server::Middleware::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
end
```

5.2.4
---------
Expand Down

0 comments on commit be80d62

Please sign in to comment.