debian-mirror-gitlab/lib/gitlab/grape_logging/loggers/perf_logger.rb

18 lines
412 B
Ruby
Raw Normal View History

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
2020-04-22 19:07:51 +05:30
include ::Gitlab::InstrumentationHelper
2019-10-12 21:52:04 +05:30
2020-04-22 19:07:51 +05:30
def parameters(_, _)
payload = {}
payload.tap { add_instrumentation_data(payload) }
2019-10-12 21:52:04 +05:30
end
2018-11-20 20:47:30 +05:30
end
end
end
end