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 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
@@ -5,7 +5,7 @@ require "#{File.dirname(__FILE__)}/lib/tasks/all.rb"
5
5
 
6
6
  task :default => :test
7
7
 
8
- task :test => 'test:newrelic'
8
+ task :test => [:gemspec, 'test:newrelic']
9
9
 
10
10
  namespace :test do
11
11
  desc "Run all tests"
@@ -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("<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>")
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
@@ -4,8 +4,6 @@ rescue LoadError => e
4
4
  end
5
5
 
6
6
  if defined? Rake::TestTask
7
- task :test => 'test:newrelic'
8
- task :default => :test
9
7
  namespace :test do
10
8
  agent_home = File.expand_path(File.join(File.dirname(__FILE__),'..','..'))
11
9
 
data/newrelic_rpm.gemspec CHANGED
@@ -1,12 +1,12 @@
1
1
  #-*- coding: utf-8 -*-
2
- # GITSHA: 69bcb7e301a855c25f8ca0f6c56c8f498ab67a94
2
+ # GITSHA: d8d4ab9b32422a7a28c96b5fe9fc75634ec9a14f
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "newrelic_rpm"
6
- s.version = "3.5.4.29.beta"
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-11"
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
@@ -69,7 +69,7 @@ class QueueTimeTest < ActionDispatch::IntegrationTest
69
69
  end
70
70
 
71
71
  def extract_queue_time_from_response
72
- @response.body =~ /key\",,\".*\",(\d+.*),\d+,new Date/
72
+ @response.body =~ /key\","",\".*\",(\d+.*),\d+,new Date/
73
73
  $1.to_i
74
74
  end
75
75
  end
@@ -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("<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,\"most recent transaction\",0,0,new Date().getTime(),\"ABC\",\"0123456789ABCDEF\",\"user\",\"account\",\"product\"]);</script>", value, "should return the javascript given some default values")
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.29.beta
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-11 00:00:00.000000000 Z
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