lib/new_relic/agent/agent.rb in newrelic_rpm-2.13.3 vs lib/new_relic/agent/agent.rb in newrelic_rpm-2.13.4.eum1
- old
+ new
@@ -59,10 +59,14 @@
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
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
@@ -431,10 +435,14 @@
: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']
control.log! "Connected to NewRelic Service at #{@collector}"
log.debug "Agent Run = #{@agent_id}."
log.debug "Connection data = #{connect_data.inspect}"
@@ -734,8 +742,9 @@
end
end
extend ClassMethods
include InstanceMethods
+ include BrowserMonitoring
end
end
end