gitlab-org--gitlab-foss/lib/gitlab/grape_logging/loggers/perf_logger.rb
2018-09-04 17:14:22 +00:00

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