Module: WProf::Config

Defined in:
lib/wprof/conf_wprof.rb

Constant Summary collapse

DEFAULTS_CONFIGS =
{
  db_runtime: true,
  reporter_type: 'LOGGER',
  csv_type: 'SPLIT',
  async: false,
  httparty_methods_to_trace: %w[get put delete post patch].freeze,
  external_url: nil,
  external_headers: nil,
  custom_methods: nil,
  file_path: Rails.root.to_s,
  disable_wprof: false
}.freeze

Class Method Summary collapse

Class Method Details

.get_value(param) ⇒ Object



39
40
41
42
43
# File 'lib/wprof/conf_wprof.rb', line 39

def get_value(param)
  value = send(param)
  return value unless value.nil?
  DEFAULTS_CONFIGS[param]
end