Skip to content

Commit

Permalink
add default service name
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadbitcoin committed Oct 23, 2024
1 parent 089a9eb commit 2ccfb05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def not_past_scheduled_time?(current_time)
# On Heroku this configuration is overridden and Sidekiq will point at the redis
# instance given by the ENV variable REDIS_PROVIDER
config.redis = { url: sidekiq_url }
config.options[:service_name] = ENV['SERVICE_NAME'] || 'default_service_name'

config.server_middleware do |chain|
chain.add Sidekiq::HoneycombMiddleware
Expand Down

0 comments on commit 2ccfb05

Please sign in to comment.