require 'new_relic/agent/stats_engine/metric_stats' require 'new_relic/agent/stats_engine/samplers' require 'new_relic/agent/stats_engine/transactions' require 'new_relic/agent/stats_engine/gc_profiler' module NewRelic module Agent # This class handles all the statistics gathering for the agent class StatsEngine include MetricStats include Samplers include Transactions def initialize # Makes the unit tests happy Thread::current[:newrelic_scope_stack] = nil start_sampler_thread end def log NewRelic::Control.instance.log end end end end