lib/new_relic/agent/agent.rb in newrelic_rpm-6.5.0.357 vs lib/new_relic/agent/agent.rb in newrelic_rpm-6.6.0.358
- old
+ new
@@ -57,24 +57,24 @@
@sql_sampler = NewRelic::Agent::SqlSampler.new
@agent_command_router = NewRelic::Agent::Commands::AgentCommandRouter.new(@events)
@cross_app_monitor = NewRelic::Agent::CrossAppMonitor.new(@events)
@distributed_trace_monitor = NewRelic::Agent::DistributedTraceMonitor.new(@events)
@synthetics_monitor = NewRelic::Agent::SyntheticsMonitor.new(@events)
- @error_collector = NewRelic::Agent::ErrorCollector.new
+ @error_collector = NewRelic::Agent::ErrorCollector.new @events
@transaction_rules = NewRelic::Agent::RulesEngine.new
@harvest_samplers = NewRelic::Agent::SamplerCollection.new(@events)
@monotonic_gc_profiler = NewRelic::Agent::VM::MonotonicGCProfiler.new
@javascript_instrumentor = NewRelic::Agent::JavascriptInstrumentor.new(@events)
@adaptive_sampler = NewRelic::Agent::AdaptiveSampler.new(self.class.config[:sampling_target],
self.class.config[:sampling_target_period_in_seconds])
@harvester = NewRelic::Agent::Harvester.new(@events)
@after_fork_lock = Mutex.new
- @transaction_event_recorder = NewRelic::Agent::TransactionEventRecorder.new
- @custom_event_aggregator = NewRelic::Agent::CustomEventAggregator.new
- @span_event_aggregator = NewRelic::Agent::SpanEventAggregator.new
+ @transaction_event_recorder = NewRelic::Agent::TransactionEventRecorder.new @events
+ @custom_event_aggregator = NewRelic::Agent::CustomEventAggregator.new @events
+ @span_event_aggregator = NewRelic::Agent::SpanEventAggregator.new @events
@connect_state = :pending
@connect_attempts = 0
@waited_on_connect = nil
@connected_pid = nil
@@ -86,11 +86,11 @@
end
def setup_attribute_filter
refresh_attribute_filter
- @events.subscribe(:finished_configuring) do
+ @events.subscribe(:initial_configuration_complete) do
refresh_attribute_filter
end
end
def refresh_attribute_filter
@@ -529,10 +529,10 @@
log_startup
check_config_and_start_agent
log_version_and_pid
- events.subscribe(:finished_configuring) do
+ events.subscribe(:initial_configuration_complete) do
log_ignore_url_regexes
end
end
# Clear out the metric data, errors, and transaction traces, etc.