newrelic_rpm 2.13.4.eum2 → 2.13.4.eum3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of newrelic_rpm might be problematic. Click here for more details.

@@ -3,30 +3,33 @@ module NewRelic
3
3
  module BrowserMonitoring
4
4
  def browser_instrumentation_header(options={})
5
5
 
6
- options = {:protocol => 'https'}.merge(options)
7
-
8
- license_key = NewRelic::Agent.instance.browser_monitoring_key
9
-
10
- return "" if license_key.nil?
11
-
12
- application_id = NewRelic::Agent.instance.application_id
13
- beacon = NewRelic::Agent.instance.beacon
14
- episodes_file = NewRelic::Agent.instance.episodes_file
15
-
16
- transaction_name = Thread::current[:newrelic_scope_name] || "<unknown>"
6
+ return "" if NewRelic::Agent.instance.browser_monitoring_key.nil?
17
7
 
18
- # Agents are hard-coded to a particular episodes JS file. This allows for radical future change
19
- # to the contents of that file
20
- file = "\"#{options[:protocol]}://#{episodes_file}\""
8
+ episodes_file = "//" + NewRelic::Agent.instance.episodes_file
21
9
 
22
10
  <<-eos
23
- <script src=#{file} type="text/javascript"></script><script type="text/javascript" charset="utf-8">NREUM.setContext("#{beacon}","#{license_key}","#{application_id}","#{transaction_name}")</script>
11
+ <script>
12
+ var EPISODES=EPISODES||{};
13
+ EPISODES.q=[];
14
+ EPISODES.q.push(["mark","firstbyte",new Date().getTime()]);
15
+ (function() {
16
+ var e=document.createElement("script");e.type="text/javascript";e.async=true;
17
+ e.src=document.location.protocol+"#{episodes_file}";
18
+ var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(e,s);
19
+ })();
20
+ </script>
24
21
  eos
25
22
  end
26
23
 
27
24
  def browser_instrumentation_footer(options={})
28
25
 
29
- return "" if NewRelic::Agent.instance.browser_monitoring_key.nil?
26
+ license_key = NewRelic::Agent.instance.browser_monitoring_key
27
+
28
+ return "" if license_key.nil?
29
+
30
+ application_id = NewRelic::Agent.instance.application_id
31
+ beacon = NewRelic::Agent.instance.beacon
32
+ transaction_name = Thread::current[:newrelic_scope_name] || "<unknown>"
30
33
 
31
34
  frame = Thread.current[:newrelic_metric_frame]
32
35
 
@@ -36,7 +39,7 @@ eos
36
39
  app_time = ((Time.now - frame.start).to_f * 1000.0).round
37
40
 
38
41
  <<-eos
39
- <script type="text/javascript" charset="utf-8">NREUM.recordFooter(#{queue_time},#{app_time})</script>
42
+ <script type="text/javascript" charset="utf-8">EPISODES.q.push(["nrfinish","#{beacon}","#{license_key}","#{application_id}","#{transaction_name}","#{queue_time}","#{app_time}"])</script>
40
43
  eos
41
44
  end
42
45
  end
@@ -4,7 +4,7 @@ module NewRelic
4
4
  MAJOR = 2
5
5
  MINOR = 13
6
6
  TINY = 4
7
- BUILD = 'eum2' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
7
+ BUILD = 'eum3' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
10
10
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{newrelic_rpm}
8
- s.version = "2.13.4.eum2"
8
+ s.version = "2.13.4.eum3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Kayser", "Justin George"]
12
- s.date = %q{2011-02-14}
12
+ s.date = %q{2011-02-16}
13
13
  s.description = %q{New Relic RPM is a Ruby performance management system, developed by
14
14
  New Relic, Inc (http://www.newrelic.com). RPM provides you with deep
15
15
  information about the performance of your Ruby on Rails or Merb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1847304031
4
+ hash: -1847304018
5
5
  prerelease: true
6
6
  segments:
7
7
  - 2
8
8
  - 13
9
9
  - 4
10
- - eum2
11
- version: 2.13.4.eum2
10
+ - eum3
11
+ version: 2.13.4.eum3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Bill Kayser
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-02-14 00:00:00 -08:00
20
+ date: 2011-02-16 00:00:00 -08:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency