Sha256: 6875dcc6d1c07f4e8807a4266dda0de34c50c5ee74fc84e50a58d163e4c7948a
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-3.6.0.74.beta | lib/new_relic/agent/configuration/server_source.rb |