traceview 3.1.0-java → 3.2.1-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,11 +64,10 @@ class FerroController < ActionController::Metal
64
64
  def world
65
65
  render :text => "Hello world!"
66
66
  end
67
-
68
- include TraceViewMethodProfiling
69
- profile_method :world, 'world'
70
67
  end
71
68
 
69
+ TraceView::API.profile_method(FerroController, :world)
70
+
72
71
  Rails40MetalStack.initialize!
73
72
 
74
73
  Thread.new do
@@ -99,31 +99,31 @@ describe "TraceView::Config" do
99
99
  # equivalents should follow suit.
100
100
 
101
101
  #
102
- # :include_url_query_params
102
+ # :include_remote_url_params
103
103
  #
104
104
 
105
105
  # Check defaults
106
- TraceView::Config[:include_url_query_params].must_equal true
106
+ TraceView::Config[:include_remote_url_params].must_equal true
107
107
  http_clients.each do |i|
108
108
  TraceView::Config[i][:log_args].must_equal true
109
109
  end
110
110
 
111
111
  # Check obedience
112
- TraceView::Config[:include_url_query_params] = false
112
+ TraceView::Config[:include_remote_url_params] = false
113
113
  http_clients.each do |i|
114
114
  TraceView::Config[i][:log_args].must_equal false
115
115
  end
116
116
 
117
117
  #
118
- # :include_remote_url_params
118
+ # :include_url_query_params
119
119
  #
120
120
 
121
121
  # Check default
122
- TraceView::Config[:include_remote_url_params].must_equal true
122
+ TraceView::Config[:include_url_query_params].must_equal true
123
123
  TraceView::Config[:rack][:log_args].must_equal true
124
124
 
125
125
  # Check obedience
126
- TraceView::Config[:include_remote_url_params] = false
126
+ TraceView::Config[:include_url_query_params] = false
127
127
  TraceView::Config[:rack][:log_args].must_equal false
128
128
 
129
129
  # Restore the previous values
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.1.0
4
+ version: 3.2.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-08-03 00:00:00.000000000 Z
12
+ date: 2015-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -138,6 +138,7 @@ files:
138
138
  - lib/traceview/inst/twitter-cassandra.rb
139
139
  - lib/traceview/inst/typhoeus.rb
140
140
  - lib/traceview/instrumentation.rb
141
+ - lib/traceview/legacy_method_profiling.rb
141
142
  - lib/traceview/loading.rb
142
143
  - lib/traceview/logger.rb
143
144
  - lib/traceview/method_profiling.rb
@@ -183,7 +184,8 @@ files:
183
184
  - test/instrumentation/sequel_pg_test.rb
184
185
  - test/instrumentation/typhoeus_test.rb
185
186
  - test/minitest_helper.rb
186
- - test/profiling/method_test.rb
187
+ - test/profiling/legacy_method_profiling_test.rb
188
+ - test/profiling/method_profiling_test.rb
187
189
  - test/servers/rackapp_8101.rb
188
190
  - test/servers/rails3x_8140.rb
189
191
  - test/servers/rails4x_8140.rb
@@ -215,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
217
  version: '0'
216
218
  requirements: []
217
219
  rubyforge_project:
218
- rubygems_version: 2.4.8
220
+ rubygems_version: 2.4.5
219
221
  signing_key:
220
222
  specification_version: 4
221
223
  summary: AppNeta TraceView performance instrumentation gem for Ruby
@@ -250,7 +252,8 @@ test_files:
250
252
  - test/instrumentation/memcached_test.rb
251
253
  - test/instrumentation/em_http_request_test.rb
252
254
  - test/instrumentation/rest-client_test.rb
253
- - test/profiling/method_test.rb
255
+ - test/profiling/method_profiling_test.rb
256
+ - test/profiling/legacy_method_profiling_test.rb
254
257
  - test/frameworks/sinatra_test.rb
255
258
  - test/frameworks/grape_test.rb
256
259
  - test/frameworks/rails3x_test.rb