debian-mirror-gitlab/lib/gitlab/marginalia.rb
2021-04-17 20:07:23 +05:30

15 lines
316 B
Ruby

# frozen_string_literal: true
module Gitlab
module 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
end
end