Module: Gitlab::Marginalia

Defined in:
lib/gitlab/marginalia.rb,
lib/gitlab/marginalia/comment.rb

Defined Under Namespace

Modules: Comment

Class Method Summary collapse

Class Method Details

.enable_sidekiq_instrumentationObject


9
10
11
12
13
# File 'lib/gitlab/marginalia.rb', line 9

def self.enable_sidekiq_instrumentation
  if Sidekiq.server?
    ::Marginalia::SidekiqInstrumentation.enable!
  end
end

.set_application_nameObject


5
6
7
# File 'lib/gitlab/marginalia.rb', line 5

def self.set_application_name
  ::Marginalia.application_name = Gitlab.process_name
end