diff options
Diffstat (limited to 'lib/gitlab/marginalia.rb')
-rw-r--r-- | lib/gitlab/marginalia.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/gitlab/marginalia.rb b/lib/gitlab/marginalia.rb deleted file mode 100644 index d2e0e335127..00000000000 --- a/lib/gitlab/marginalia.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module Marginalia - MARGINALIA_FEATURE_FLAG = :marginalia - - def self.set_application_name - ::Marginalia.application_name = Gitlab.process_name - end - - def self.enable_sidekiq_instrumentation - if Sidekiq.server? - ::Marginalia::SidekiqInstrumentation.enable! - end - end - - def self.feature_enabled? - return false unless Gitlab::Database.cached_table_exists?('features') - - Feature.enabled?(MARGINALIA_FEATURE_FLAG) - end - end -end |