lib/new_relic/agent/agent.rb in newrelic_rpm-3.9.4.245 vs lib/new_relic/agent/agent.rb in newrelic_rpm-3.9.5.251
- old
+ new
@@ -768,11 +768,11 @@
:language => 'ruby',
:labels => Agent.config.parsed_labels,
:agent_version => NewRelic::VERSION::STRING,
:environment => @environment_report,
:settings => Agent.config.to_collector_hash,
- :high_security => Agent.config[:high_security],
+ :high_security => Agent.config[:high_security]
}
end
# Returns connect data passed back from the server
def connect_to_server
@@ -809,11 +809,11 @@
::NewRelic::Agent.logger.debug "Server provided config: #{config_data.inspect}"
server_config = NewRelic::Agent::Configuration::ServerSource.new(config_data, Agent.config)
Agent.config.replace_or_add_config(server_config)
log_connection!(config_data) if @service
- @transaction_rules = RulesEngine.from_specs(config_data['transaction_name_rules'])
- @stats_engine.metric_rules = RulesEngine.from_specs(config_data['metric_name_rules'])
+ @transaction_rules = RulesEngine.create_transaction_rules(config_data)
+ @stats_engine.metric_rules = RulesEngine.create_metric_rules(config_data)
# If you're adding something else here to respond to the server-side config,
# use Agent.instance.events.subscribe(:finished_configuring) callback instead!
end