Sha256: 0f1be79ed88fae26e416d8cab1bc67395ac224c697eff85586658a7d7b102aa4

Contents?: true

Size: 723 Bytes

Versions: 3

Compression:

Stored size: 723 Bytes

Contents

module NewRelic
  module Agent
    module Configuration
      class ServerSource < DottedHash
        def initialize(hash)
          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['transaction_tracer.transaction_threshold'] =~ /apdex_f/i
            # when value is "apdex_f" remove the config and defer to default
            hash.delete('transaction_tracer.transaction_threshold')
          end

          super
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newrelic_rpm-3.4.2.1 lib/new_relic/agent/configuration/server_source.rb
newrelic_rpm-3.4.2 lib/new_relic/agent/configuration/server_source.rb
newrelic_rpm-3.4.2.beta1 lib/new_relic/agent/configuration/server_source.rb