redis_config = {
  host: ENV["REDIS_HOST"] || "127.0.0.1",
  port: ENV["REDIS_PORT"] || 6379,
  namespace: "manuals-publisher",
}

Sidekiq.configure_server do |config|
  config.redis = redis_config

  config.server_middleware do |chain|
    chain.add Sidekiq::Statsd::ServerMiddleware, env: "govuk.app.manuals-publisher", prefix: "workers"
  end
end

Sidekiq.configure_client do |config|
  config.redis = redis_config
end

redis_config = {
  host: ENV["REDIS_HOST"] || "127.0.0.1",
  port: ENV["REDIS_PORT"] || 6379,
  namespace: "manuals-publisher",
}

Sidekiq.configure_server do |config|
  config.redis = redis_config

  config.error_handlers << Proc.new { |ex, context_hash| GovukError.notify(ex, context_hash) }

  config.server_middleware do |chain|
    chain.add Sidekiq::Statsd::ServerMiddleware, env: "govuk.app.manuals-publisher", prefix: "workers"
  end
end

Sidekiq.configure_client do |config|
  config.redis = redis_config
end

--- 
+++ 
@@ -7,8 +7,6 @@
 Sidekiq.configure_server do |config|
   config.redis = redis_config
 
-  config.error_handlers << Proc.new { |ex, context_hash| GovukError.notify(ex, context_hash) }
-
   config.server_middleware do |chain|
     chain.add Sidekiq::Statsd::ServerMiddleware, env: "govuk.app.manuals-publisher", prefix: "workers"
   end
Stop sending errors via Sidekiq

The Sentry client can do this for us.
