debian-mirror-gitlab/lib/gitlab/grape_logging/loggers/perf_logger.rb
2020-04-22 19:07:51 +05:30

17 lines
412 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
include ::Gitlab::InstrumentationHelper
def parameters(_, _)
payload = {}
payload.tap { add_instrumentation_data(payload) }
end
end
end
end
end