Skip to content

Commit

Permalink
Revert "API-26059 Log durations of some sidekiq jobs (#12474)" (#12840)
Browse files Browse the repository at this point in the history
This reverts commit 2a0bead.
  • Loading branch information
caseywilliams authored May 31, 2023
1 parent c589b29 commit cb632a7
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 85 deletions.
2 changes: 0 additions & 2 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
require 'sidekiq/semantic_logging'
require 'sidekiq/set_request_id'
require 'sidekiq/set_request_attributes'
require 'sidekiq/middleware/benchmark_logging_middleware'
require 'datadog/statsd' # gem 'dogstatsd-ruby'

Rails.application.reloader.to_prepare do
Expand All @@ -32,7 +31,6 @@
chain.add SidekiqStatsInstrumentation::ServerMiddleware
chain.add Sidekiq::RetryMonitoring
chain.add Sidekiq::ErrorTag
chain.add Sidekiq::Middleware::BenchmarkLoggingMiddleware

if Settings.dogstatsd.enabled == true
require 'sidekiq/middleware/server/statsd'
Expand Down
10 changes: 0 additions & 10 deletions lib/sidekiq/benchmark_logging_worker.rb

This file was deleted.

18 changes: 0 additions & 18 deletions lib/sidekiq/middleware/benchmark_logging_middleware.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# frozen_string_literal: true

require 'sidekiq'
require 'sidekiq/benchmark_logging_worker'
require 'flipper/utilities/bulk_feature_checker'
require 'sidekiq/middleware/benchmark_logging_middleware'

module AppealsApi
class FlipperStatusAlert
include Sidekiq::Worker
include Sidekiq::BenchmarkLoggingWorker

WARNING_EMOJI = ':warning:'
DISABLED_FLAG_EMOJI = ':vertical_traffic_light:'
Expand Down
3 changes: 0 additions & 3 deletions modules/va_forms/app/workers/va_forms/flipper_status_alert.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# frozen_string_literal: true

require 'sidekiq'
require 'sidekiq/benchmark_logging_worker'
require 'flipper/utilities/bulk_feature_checker'
require 'sidekiq/middleware/benchmark_logging_middleware'

module VAForms
class FlipperStatusAlert
include Sidekiq::Worker
include Sidekiq::BenchmarkLoggingWorker

WARNING_EMOJI = ':warning:'
DISABLED_FLAG_EMOJI = ':vertical_traffic_light:'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# frozen_string_literal: true

require 'sidekiq'
require 'sidekiq/benchmark_logging_worker'
require 'flipper/utilities/bulk_feature_checker'
require 'sidekiq/middleware/benchmark_logging_middleware'

module VBADocuments
class FlipperStatusAlert
include Sidekiq::Worker
include Sidekiq::BenchmarkLoggingWorker

WARNING_EMOJI = ':warning:'
DISABLED_FLAG_EMOJI = ':vertical_traffic_light:'
Expand Down
46 changes: 0 additions & 46 deletions spec/lib/sidekiq/middleware/benchmark_logging_middleware_spec.rb

This file was deleted.

0 comments on commit cb632a7

Please sign in to comment.