traceview 3.0.0-java → 3.0.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 419e8c941085b63d93dc35f85bce9f8b56a200c8
4
- data.tar.gz: 3e7518114ba1299214ae651baf5d99567a74b5ed
3
+ metadata.gz: cc688a94875fe16ca06230262e394f32d6b4c7a5
4
+ data.tar.gz: b1fccdc95e5c3ab0ed4fa06a7fb96c72670f58ef
5
5
  SHA512:
6
- metadata.gz: 1aadebfdbff8b454c9574c16ec26b0ecd2f7180bddab2c4cc97eeb6364ea24e57ca0aac82cc645d3afc075169dc3ffce017340b9ee5e7abbb8663aa58213e47b
7
- data.tar.gz: 00905d0709474322db264419a43e110b72b83f188b4996fed9a2ab8e48ed9de316882bd18308cca49489d04deeaf77b77353c328f44feac40f2b47811b31652a
6
+ metadata.gz: 820011918c977cfeed3f4e5352541248db7c3bd3299e8cdaf92b7a43b1417c1c706139b5436ebc11a3d1705bcbc0e2ecf0b39d487805de4671c4e3b828b874be
7
+ data.tar.gz: e781653662060e351a369a2339f7c74f6d6d565254654e0862e15a49d99e0262f07263e6b057be8e4b51272ed4ddf5d78298eae9d3f1f932d7432c0559d90069
@@ -4,6 +4,17 @@ https://github.com/appneta/oboe-ruby/releases
4
4
 
5
5
  Dates in this file are in the format MM/DD/YYYY.
6
6
 
7
+ # traceview 3.0.1
8
+
9
+ This patch release includes the following fix:
10
+
11
+ * Add missing backcompat support bits: #122
12
+
13
+ Pushed to Rubygems:
14
+
15
+ https://rubygems.org/gems/traceview/versions/3.0.1
16
+ https://rubygems.org/gems/traceview/versions/3.0.1-java
17
+
7
18
  # traceview 3.0.0
8
19
 
9
20
  The oboe gem has been renamed to traceview. The final oboe
@@ -17,6 +17,7 @@ module Oboe
17
17
  unless @deprecated_notified
18
18
  TraceView.logger.warn "[traceview/warn] Note that Oboe::API has been renamed to TraceView::API. (#{sym}:#{args})"
19
19
  TraceView.logger.warn "[traceview/warn] Oboe::API will be deprecated in a future version."
20
+ TraceView.logger.warn "[traceview/warn] Caller: #{Kernel.caller[0]}"
20
21
  @deprecated_notified = true
21
22
  end
22
23
  TraceView::API.send(sym, *args, &blk)
@@ -36,11 +37,31 @@ module Oboe
36
37
  unless @deprecated_notified
37
38
  TraceView.logger.warn "[traceview/warn] Note that Oboe::Config has been renamed to TraceView::Config. (#{sym}:#{args})"
38
39
  TraceView.logger.warn "[traceview/warn] Oboe::Config will be deprecated in a future version."
40
+ TraceView.logger.warn "[traceview/warn] Caller: #{Kernel.caller[0]}"
39
41
  @deprecated_notified = true
40
42
  end
41
43
  TraceView::Config.send(sym, *args)
42
44
  end
43
45
  end
46
+
47
+ #
48
+ # Support for legacy Oboe::Ruby.load calls
49
+ #
50
+ module Ruby
51
+ extend ::TraceView::ThreadLocal
52
+ thread_local :deprecation_notified
53
+
54
+ def self.method_missing(sym, *args)
55
+ # Notify of deprecation only once
56
+ unless @deprecated_notified
57
+ TraceView.logger.warn "[traceview/warn] Note that Oboe::Ruby has been renamed to TraceView::Ruby. (#{sym}:#{args})"
58
+ TraceView.logger.warn "[traceview/warn] Oboe::Ruby will be deprecated in a future version."
59
+ TraceView.logger.warn "[traceview/warn] Caller: #{Kernel.caller[0]}"
60
+ @deprecated_notified = true
61
+ end
62
+ TraceView::Ruby.send(sym, *args)
63
+ end
64
+ end
44
65
  end
45
66
 
46
67
 
@@ -1,15 +1,14 @@
1
1
  # Copyright (c) 2013 AppNeta, Inc.
2
2
  # All rights reserved.
3
3
 
4
- module Oboe
4
+ module TraceView
5
5
  class InstallGenerator < ::Rails::Generators::Base
6
6
  source_root File.join(File.dirname(__FILE__), 'templates')
7
- desc "Copies an oboe initializer files to your application."
7
+ desc "Copies a TraceView gem initializer file to your application."
8
8
 
9
9
  def copy_initializer
10
10
  # Set defaults
11
11
  @tracing_mode = 'through'
12
- @sample_rate = '300000'
13
12
  @verbose = 'false'
14
13
 
15
14
  print_header
@@ -32,7 +31,7 @@ module Oboe
32
31
 
33
32
  print_footer
34
33
 
35
- template "oboe_initializer.rb", "config/initializers/traceview.rb"
34
+ template "traceview_initializer.rb", "config/initializers/traceview.rb"
36
35
  end
37
36
 
38
37
  private
@@ -46,11 +45,11 @@ module Oboe
46
45
  say shell.set_color "Documentation Links", :magenta
47
46
  say "-------------------"
48
47
  say ""
49
- say "Details on configuring your sample rate:"
50
- say "https://support.appneta.com/cloud/configuring-sampling"
48
+ say "TraceView Installation Overview:"
49
+ say "https://docs.appneta.com/installation-overview"
51
50
  say ""
52
51
  say "More information on instrumenting Ruby applications can be found here:"
53
- say "https://support.appneta.com/cloud/installing-ruby-instrumentation"
52
+ say "https://docs.appneta.com/installing-ruby-instrumentation"
54
53
  end
55
54
 
56
55
  def print_body
@@ -1,4 +1,4 @@
1
- # AppNeta TraceView Initializer (the oboe gem)
1
+ # AppNeta TraceView Initializer (for the traceview gem)
2
2
  # http://www.appneta.com/products/traceview/
3
3
  #
4
4
  # More information on instrumenting Ruby applications can be found here:
@@ -42,7 +42,7 @@ if defined?(TraceView::Config)
42
42
  # query args by default.
43
43
  TraceView::Config[:include_remote_url_params] = true
44
44
 
45
- # The oboe Ruby client has the ability to sanitize query literals
45
+ # The TraceView Ruby client has the ability to sanitize query literals
46
46
  # from SQL statements. By default this is disabled. Enable to
47
47
  # avoid collecting and reporting query literals to TraceView.
48
48
  # TraceView::Config[:sanitize_sql] = false
@@ -70,7 +70,7 @@ if defined?(TraceView::Config)
70
70
  # regardless of case
71
71
  #
72
72
  # Requests with positive matches (non nil) will not be traced.
73
- # See lib/oboe/util.rb: TraceView::Util.static_asset?
73
+ # See lib/traceview/util.rb: TraceView::Util.static_asset?
74
74
  #
75
75
  # TraceView::Config[:dnt_regexp] = "\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|ttf|woff|svg|less)$"
76
76
  # TraceView::Config[:dnt_opts] = Regexp::IGNORECASE
@@ -25,6 +25,7 @@ module TraceView
25
25
  return ""
26
26
  end
27
27
  end
28
+ alias_method :oboe_rum_header, :traceview_rum_header
28
29
 
29
30
  def traceview_rum_footer
30
31
  begin
@@ -39,6 +40,7 @@ module TraceView
39
40
  return ""
40
41
  end
41
42
  end
43
+ alias_method :oboe_rum_footer, :traceview_rum_footer
42
44
  end # Helpers
43
45
 
44
46
  def self.load_initializer
@@ -54,6 +54,7 @@ module TraceView
54
54
  TraceView.logger.warn "traceview_rum_header: #{e.message}."
55
55
  return ''
56
56
  end
57
+ alias_method :oboe_rum_header, :traceview_rum_header
57
58
 
58
59
  def traceview_rum_footer
59
60
  return unless TraceView::Config.rum_id
@@ -66,6 +67,7 @@ module TraceView
66
67
  TraceView.logger.warn "traceview_rum_footer: #{e.message}."
67
68
  return ''
68
69
  end
70
+ alias_method :oboe_rum_footer, :traceview_rum_footer
69
71
  end
70
72
  end
71
73
  end
@@ -158,7 +158,7 @@ module TraceView
158
158
  end
159
159
 
160
160
  ##
161
- # build_report
161
+ # build_init_report
162
162
  #
163
163
  # Internal: Build a hash of KVs that reports on the status of the
164
164
  # running environment. This is used on stack boot in __Init reporting
@@ -8,7 +8,7 @@ module TraceView
8
8
  module Version
9
9
  MAJOR = 3
10
10
  MINOR = 0
11
- PATCH = 0
11
+ PATCH = 1
12
12
  BUILD = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -3,6 +3,19 @@ require 'sinatra'
3
3
  class SinatraSimple < Sinatra::Base
4
4
  set :reload, true
5
5
 
6
+ template :layout do
7
+ # Use both the legacy and new RUM helper
8
+ # oboe_rum_header + traceview_rum_footer
9
+ %q{
10
+ <html>
11
+ <head><%= oboe_rum_header %></head>
12
+ <body>
13
+ <%= yield %>
14
+ <%= traceview_rum_footer %>
15
+ </body>
16
+ </html>}
17
+ end
18
+
6
19
  get "/" do
7
20
  'The magick number is: 2767356926488785838763860464013972991031534522105386787489885890443740254365!' # Change only the number!!!
8
21
  end
@@ -26,5 +26,13 @@ describe Sinatra do
26
26
  r.headers.key?('X-Trace').must_equal true
27
27
  r.headers['X-Trace'].must_equal traces[8]['X-Trace']
28
28
  end
29
+
30
+ it "should have RUM code in the response" do
31
+ @app = SinatraSimple
32
+
33
+ r = get "/render"
34
+
35
+ (r.body =~ /tly.js/).wont_equal nil
36
+ end
29
37
  end
30
38
 
@@ -2,6 +2,10 @@ require 'minitest_helper'
2
2
 
3
3
  describe "BackwardCompatibility" do
4
4
 
5
+ it 'should still export to Oboe::Ruby' do
6
+ defined?(::Oboe::Ruby).must_equal "constant"
7
+ end
8
+
5
9
  it 'should still respond to Oboe::Config' do
6
10
  @verbose = Oboe::Config[:verbose]
7
11
  @dalli_enabled = Oboe::Config[:dalli][:enabled]
@@ -55,7 +59,7 @@ describe "BackwardCompatibility" do
55
59
  validate_outer_layers(traces, 'api_test')
56
60
  end
57
61
 
58
- it 'should still support Oboe.profile'do
62
+ it 'should still support Oboe::API.profile'do
59
63
  clear_all_traces
60
64
 
61
65
  Oboe::API.start_trace('outer_profile_test') do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traceview
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: java
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-28 00:00:00.000000000 Z
12
+ date: 2015-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json