2018-11-20 20:47:30 +05:30
|
|
|
# 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(_, _)
|
2019-05-30 16:15:17 +05:30
|
|
|
{ gitaly_calls: Gitlab::GitalyClient.get_request_count }
|
2018-11-20 20:47:30 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|