newrelic_rpm 3.5.4.29.beta → 3.5.4.31.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +11 -0
- data/Rakefile +1 -1
- data/lib/new_relic/agent/browser_monitoring.rb +1 -1
- data/lib/tasks/tests.rake +0 -2
- data/newrelic_rpm.gemspec +3 -3
- data/test/multiverse/suites/rails_3_queue_time/queue_time_test.rb +1 -1
- data/test/new_relic/agent/browser_monitoring_test.rb +3 -3
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -24,6 +24,17 @@
|
|
24
24
|
|
25
25
|
* Report back build number and stage along with version info
|
26
26
|
|
27
|
+
* The host and the port that the agent reports to can now be set from environment vars
|
28
|
+
|
29
|
+
The host can be set with NEW_RELIC_HOST and the port with NEW_RELIC_PORT. These setting
|
30
|
+
will overrride any other settings in your newrelic.yml.
|
31
|
+
|
32
|
+
* Fix RUM reporting to multiple applications
|
33
|
+
|
34
|
+
When the agent is configured to report to multiple "roll up" applications
|
35
|
+
RUM did not work correctly.
|
36
|
+
|
37
|
+
>>>>>>> 3b105ce... RUBY-975 - Fix RUM reporting to multiple applications
|
27
38
|
## v3.5.3 ##
|
28
39
|
|
29
40
|
* Update the collector protocol to use JSON and Ruby primitives
|
data/Rakefile
CHANGED
@@ -174,7 +174,7 @@ module NewRelic
|
|
174
174
|
account = obfuscate(config, metric_frame_attribute(:account))
|
175
175
|
product = obfuscate(config, metric_frame_attribute(:product))
|
176
176
|
|
177
|
-
html_safe_if_needed(
|
177
|
+
html_safe_if_needed(%'<script type="text/javascript">#{config.browser_timing_static_footer}NREUMQ.push(["#{config.finish_command}","#{Agent.config[:beacon]}","#{Agent.config[:browser_key]}","#{Agent.config[:application_id]}","#{obfuscated_transaction_name}",#{browser_monitoring_queue_time},#{browser_monitoring_app_time},new Date().getTime(),"#{tt_guid}","#{tt_token}","#{user}","#{account}","#{product}"]);</script>')
|
178
178
|
end
|
179
179
|
|
180
180
|
def html_safe_if_needed(string)
|
data/lib/tasks/tests.rake
CHANGED
data/newrelic_rpm.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
#-*- coding: utf-8 -*-
|
2
|
-
# GITSHA:
|
2
|
+
# GITSHA: d8d4ab9b32422a7a28c96b5fe9fc75634ec9a14f
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "newrelic_rpm"
|
6
|
-
s.version = "3.5.4.
|
6
|
+
s.version = "3.5.4.31.beta"
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [ "Jason Clark", "Sam Goldstein", "Jon Guymon", "Ben Weintraub" ]
|
9
|
-
s.date = "2012-12-
|
9
|
+
s.date = "2012-12-13"
|
10
10
|
s.description = <<-EOS
|
11
11
|
New Relic is a performance management system, developed by New Relic,
|
12
12
|
Inc (http://www.newrelic.com). New Relic provides you with deep
|
@@ -14,7 +14,7 @@ class NewRelic::Agent::BrowserMonitoringTest < Test::Unit::TestCase
|
|
14
14
|
:beacon => 'beacon',
|
15
15
|
:disable_mobile_headers => false,
|
16
16
|
:browser_key => 'browserKey',
|
17
|
-
:application_id => 5,
|
17
|
+
:application_id => '5, 6', # collector can return app multiple ids
|
18
18
|
:'rum.enabled' => true,
|
19
19
|
:episodes_file => 'this_is_my_file',
|
20
20
|
:'rum.jsonp' => true
|
@@ -303,7 +303,7 @@ var e=document.createElement("script");'
|
|
303
303
|
self.expects(:obfuscate).with(NewRelic::Agent.instance.beacon_configuration, 'product').returns('product')
|
304
304
|
|
305
305
|
value = footer_js_string(NewRelic::Agent.instance.beacon_configuration)
|
306
|
-
assert_equal(
|
306
|
+
assert_equal(%'<script type="text/javascript">if (!NREUMQ.f) { NREUMQ.f=function() {\nNREUMQ.push(["load",new Date().getTime()]);\nvar e=document.createElement("script");\ne.type="text/javascript";\ne.src=(("http:"===document.location.protocol)?"http:":"https:") + "//" +\n "this_is_my_file";\ndocument.body.appendChild(e);\nif(NREUMQ.a)NREUMQ.a();\n};\nNREUMQ.a=window.onload;window.onload=NREUMQ.f;\n};\nNREUMQ.push(["nrfj","beacon","browserKey","5, 6","most recent transaction",0,0,new Date().getTime(),"ABC","0123456789ABCDEF","user","account","product"]);</script>', value, "should return the javascript given some default values")
|
307
307
|
end
|
308
308
|
|
309
309
|
def test_html_safe_if_needed_unsafed
|
@@ -376,7 +376,7 @@ var e=document.createElement("script");'
|
|
376
376
|
response = mobile_transaction
|
377
377
|
txn_name = obfuscate(NewRelic::Agent.instance.beacon_configuration,
|
378
378
|
browser_monitoring_transaction_name)
|
379
|
-
expected_payload = %|["5","#{txn_name}",#{browser_monitoring_queue_time},#{browser_monitoring_app_time}]|
|
379
|
+
expected_payload = %|["5, 6","#{txn_name}",#{browser_monitoring_queue_time},#{browser_monitoring_app_time}]|
|
380
380
|
|
381
381
|
assert_equal expected_payload, response['X-NewRelic-App-Server-Metrics'].strip
|
382
382
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.4.
|
4
|
+
version: 3.5.4.31.beta
|
5
5
|
prerelease: 9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-12-
|
15
|
+
date: 2012-12-13 00:00:00.000000000 Z
|
16
16
|
dependencies: []
|
17
17
|
description: ! 'New Relic is a performance management system, developed by New Relic,
|
18
18
|
|