debian-mirror-gitlab/lib/gitlab/grape_logging/loggers/perf_logger.rb
2018-11-20 20:47:30 +05:30

14 lines
347 B
Ruby

# frozen_string_literal: true
# This module adds additional performance metrics to the grape logger
module Gitlab
module GrapeLogging
module Loggers
class PerfLogger < ::GrapeLogging::Loggers::Base
def parameters(_, _)
{ gitaly_calls: Gitlab::GitalyClient.get_request_count }
end
end
end
end
end