Sha256: 06b58b82c84077170b757a6fc399944a2f1e2d449d47a91bde3439954dcb26fd
Contents?: true
Size: 999 Bytes
Versions: 6
Compression:
Stored size: 999 Bytes
Contents
module NewRelic module Agent module Configuration class ServerSource < DottedHash def initialize(hash) if hash['agent_config'] if hash['agent_config']['transaction_tracer.transaction_threshold'] =~ /apdex_f/i # when value is "apdex_f" remove the config and defer to default hash['agent_config'].delete('transaction_tracer.transaction_threshold') end super(hash.delete('agent_config')) end string_map = [ ['collect_traces', 'transaction_tracer.enabled'], ['collect_traces', 'slow_sql.enabled'], ['collect_errors', 'error_collector.enabled'] ].each do |pair| hash[pair[1]] = hash[pair[0]] if hash[pair[0]] != nil end if hash['web_transactions_apdex'] self[:web_transactions_apdex] = hash.delete('web_transactions_apdex') end super end end end end end
Version data entries
6 entries across 6 versions & 3 rubygems