lib/new_relic/agent/agent.rb in newrelic_rpm-2.13.4.rum5 vs lib/new_relic/agent/agent.rb in newrelic_rpm-2.13.4.rum6
- old
+ new
@@ -59,14 +59,11 @@
attr_reader :error_collector
attr_reader :record_sql
attr_reader :histogram
attr_reader :metric_ids
attr_reader :url_rules
- attr_reader :browser_monitoring_key
- attr_reader :application_id
- attr_reader :beacon
- attr_reader :episodes_file
+ attr_reader :beacon_configuration
def record_transaction(duration_seconds, options={})
is_error = options['is_error'] || options['error_message'] || options['exception']
metric = options['metric']
metric ||= options['uri'] # normalize this with url rules
@@ -435,13 +432,10 @@
:token => control.validate_token }
@agent_id = connect_data['agent_run_id']
@report_period = connect_data['data_report_period']
@url_rules = connect_data['url_rules']
- @browser_monitoring_key = connect_data['browser_key']
- @application_id = connect_data['application_id']
- @beacon = connect_data['beacon']
- @episodes_file = connect_data['episodes_file']
+ @beacon_configuration = BeaconConfiguration.new(connect_data)
control.log! "Connected to NewRelic Service at #{@collector}"
log.debug "Agent Run = #{@agent_id}."
log.debug "Connection data = #{connect_data.inspect}"