Class: Gitlab::GrapeLogging::Loggers::PerfLogger

Inherits:
GrapeLogging::Loggers::Base
  • Object
show all
Includes:
InstrumentationHelper
Defined in:
lib/gitlab/grape_logging/loggers/perf_logger.rb

Constant Summary

Constants included from InstrumentationHelper

InstrumentationHelper::DURATION_PRECISION

Instance Method Summary collapse

Methods included from InstrumentationHelper

#add_instrumentation_data, enqueue_latency_for_scheduled_job, #init_instrumentation_data, #instrument_active_record, #instrument_cpu, #instrument_elasticsearch, #instrument_external_http, #instrument_gitaly, #instrument_load_balancing, #instrument_pid, #instrument_rack_attack, #instrument_redis, #instrument_rugged, #instrument_thread_memory_allocations, #instrument_throttle, #instrument_uploads, queue_duration_for_job, round_elapsed_time

Instance Method Details

#parameters(_, _) ⇒ Object


10
11
12
13
# File 'lib/gitlab/grape_logging/loggers/perf_logger.rb', line 10

def parameters(_, _)
  payload = {}
  payload.tap { add_instrumentation_data(payload) }
end