scout_apm 2.1.32 → 2.2.0.pre0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/CHANGELOG.markdown +2 -161
  4. data/Rakefile +2 -2
  5. data/ext/allocations/allocations.c +0 -6
  6. data/ext/allocations/extconf.rb +0 -1
  7. data/ext/stacks/extconf.rb +33 -0
  8. data/ext/stacks/scout_atomics.h +86 -0
  9. data/ext/stacks/stacks.c +744 -0
  10. data/lib/scout_apm.rb +16 -24
  11. data/lib/scout_apm/agent.rb +38 -93
  12. data/lib/scout_apm/agent/logging.rb +1 -6
  13. data/lib/scout_apm/agent/reporting.rb +6 -8
  14. data/lib/scout_apm/app_server_load.rb +10 -21
  15. data/lib/scout_apm/attribute_arranger.rb +2 -0
  16. data/lib/scout_apm/background_job_integrations/delayed_job.rb +1 -71
  17. data/lib/scout_apm/background_job_integrations/sidekiq.rb +27 -66
  18. data/lib/scout_apm/background_worker.rb +15 -19
  19. data/lib/scout_apm/capacity.rb +57 -0
  20. data/lib/scout_apm/config.rb +29 -135
  21. data/lib/scout_apm/context.rb +5 -9
  22. data/lib/scout_apm/deploy_integrations/capistrano_2.cap +12 -0
  23. data/lib/scout_apm/deploy_integrations/capistrano_2.rb +83 -0
  24. data/lib/scout_apm/deploy_integrations/capistrano_3.cap +12 -0
  25. data/lib/scout_apm/deploy_integrations/capistrano_3.rb +88 -0
  26. data/lib/scout_apm/environment.rb +15 -22
  27. data/lib/scout_apm/histogram.rb +2 -11
  28. data/lib/scout_apm/instant/assets/xmlhttp_instrumentation.html +2 -2
  29. data/lib/scout_apm/instant/middleware.rb +57 -198
  30. data/lib/scout_apm/instruments/action_controller_rails_2.rb +2 -1
  31. data/lib/scout_apm/instruments/action_controller_rails_3_rails4.rb +59 -90
  32. data/lib/scout_apm/instruments/active_record.rb +5 -7
  33. data/lib/scout_apm/instruments/delayed_job.rb +57 -0
  34. data/lib/scout_apm/instruments/grape.rb +3 -4
  35. data/lib/scout_apm/instruments/middleware_detailed.rb +6 -4
  36. data/lib/scout_apm/instruments/middleware_summary.rb +1 -39
  37. data/lib/scout_apm/instruments/mongoid.rb +3 -24
  38. data/lib/scout_apm/instruments/net_http.rb +2 -7
  39. data/lib/scout_apm/instruments/percentile_sampler.rb +19 -36
  40. data/lib/scout_apm/instruments/process/process_cpu.rb +2 -3
  41. data/lib/scout_apm/instruments/process/process_memory.rb +3 -3
  42. data/lib/scout_apm/layaway.rb +33 -76
  43. data/lib/scout_apm/layer.rb +59 -16
  44. data/lib/scout_apm/layer_converters/converter_base.rb +0 -199
  45. data/lib/scout_apm/layer_converters/job_converter.rb +1 -1
  46. data/lib/scout_apm/layer_converters/metric_converter.rb +1 -1
  47. data/lib/scout_apm/layer_converters/slow_job_converter.rb +90 -15
  48. data/lib/scout_apm/layer_converters/slow_request_converter.rb +101 -13
  49. data/lib/scout_apm/metric_set.rb +1 -9
  50. data/lib/scout_apm/metric_stats.rb +8 -8
  51. data/lib/scout_apm/reporter.rb +15 -51
  52. data/lib/scout_apm/request_histograms.rb +0 -4
  53. data/lib/scout_apm/request_manager.rb +1 -2
  54. data/lib/scout_apm/scored_item_set.rb +0 -7
  55. data/lib/scout_apm/serializers/deploy_serializer.rb +16 -0
  56. data/lib/scout_apm/serializers/payload_serializer.rb +3 -9
  57. data/lib/scout_apm/serializers/payload_serializer_to_json.rb +5 -2
  58. data/lib/scout_apm/serializers/slow_jobs_serializer_to_json.rb +1 -2
  59. data/lib/scout_apm/server_integrations/puma.rb +2 -5
  60. data/lib/scout_apm/slow_item_set.rb +80 -0
  61. data/lib/scout_apm/slow_job_record.rb +1 -6
  62. data/lib/scout_apm/slow_transaction.rb +2 -20
  63. data/lib/scout_apm/store.rb +12 -50
  64. data/lib/scout_apm/trace_compactor.rb +311 -0
  65. data/lib/scout_apm/tracked_request.rb +37 -128
  66. data/lib/scout_apm/utils/backtrace_parser.rb +5 -7
  67. data/lib/scout_apm/utils/fake_stacks.rb +83 -0
  68. data/lib/scout_apm/version.rb +1 -1
  69. data/scout_apm.gemspec +4 -6
  70. data/test/test_helper.rb +0 -56
  71. data/test/unit/config_test.rb +9 -60
  72. data/test/unit/histogram_test.rb +0 -14
  73. data/test/unit/layaway_test.rb +16 -31
  74. data/test/unit/serializers/payload_serializer_test.rb +105 -3
  75. data/test/unit/slow_item_set_test.rb +94 -0
  76. data/test/unit/slow_job_policy_test.rb +49 -0
  77. data/test/unit/slow_request_policy_test.rb +5 -4
  78. data/test/unit/utils/backtrace_parser_test.rb +0 -19
  79. data/tester.rb +53 -0
  80. metadata +29 -124
  81. data/.rubocop.yml +0 -8
  82. data/Guardfile +0 -42
  83. data/ext/rusage/README.md +0 -26
  84. data/ext/rusage/extconf.rb +0 -5
  85. data/ext/rusage/rusage.c +0 -52
  86. data/lib/scout_apm/background_job_integrations/resque.rb +0 -85
  87. data/lib/scout_apm/background_recorder.rb +0 -43
  88. data/lib/scout_apm/debug.rb +0 -37
  89. data/lib/scout_apm/git_revision.rb +0 -51
  90. data/lib/scout_apm/instruments/action_view.rb +0 -49
  91. data/lib/scout_apm/instruments/resque.rb +0 -40
  92. data/lib/scout_apm/layer_children_set.rb +0 -77
  93. data/lib/scout_apm/limited_layer.rb +0 -122
  94. data/lib/scout_apm/rack.rb +0 -26
  95. data/lib/scout_apm/remote/message.rb +0 -23
  96. data/lib/scout_apm/remote/recorder.rb +0 -57
  97. data/lib/scout_apm/remote/router.rb +0 -49
  98. data/lib/scout_apm/remote/server.rb +0 -58
  99. data/lib/scout_apm/serializers/histograms_serializer_to_json.rb +0 -21
  100. data/lib/scout_apm/synchronous_recorder.rb +0 -26
  101. data/lib/scout_apm/utils/gzip_helper.rb +0 -24
  102. data/lib/scout_apm/utils/numbers.rb +0 -14
  103. data/lib/scout_apm/utils/scm.rb +0 -14
  104. data/test/unit/background_job_integrations/sidekiq_test.rb +0 -104
  105. data/test/unit/context_test.rb +0 -30
  106. data/test/unit/git_revision_test.rb +0 -15
  107. data/test/unit/instruments/net_http_test.rb +0 -21
  108. data/test/unit/instruments/percentile_sampler_test.rb +0 -137
  109. data/test/unit/layer_children_set_test.rb +0 -88
  110. data/test/unit/limited_layer_test.rb +0 -53
  111. data/test/unit/remote/test_message.rb +0 -13
  112. data/test/unit/remote/test_router.rb +0 -33
  113. data/test/unit/remote/test_server.rb +0 -15
  114. data/test/unit/store_test.rb +0 -89
  115. data/test/unit/test_tracked_request.rb +0 -87
  116. data/test/unit/utils/numbers_test.rb +0 -15
  117. data/test/unit/utils/scm.rb +0 -17
@@ -32,10 +32,11 @@ class SlowRequestPolicyTest < Minitest::Test
32
32
 
33
33
  request.set_duration(10) # 10 seconds
34
34
  policy.last_seen[request.unique_name] = Time.now - 120 # 2 minutes since last seen
35
- ScoutApm::Agent.instance.request_histograms.add(request.unique_name, 1)
35
+ agent.request_histograms.add(request.unique_name, 1)
36
+
37
+ # Actual value I have in console is 1.599
38
+ assert policy.score(request) > 1.5
39
+ assert policy.score(request) < 2.0
36
40
 
37
- # Actual value I have in console is 1.499
38
- assert policy.score(request) > 1.45
39
- assert policy.score(request) < 1.55
40
41
  end
41
42
  end
@@ -39,11 +39,6 @@ class BacktraceParserTest < Minitest::Test
39
39
  end
40
40
  end
41
41
 
42
- def test_calls_scm_relative_path
43
- ScoutApm::Utils::Scm.expects(:relative_scm_path).at_least_once
44
- assert ScoutApm::Utils::BacktraceParser.new(raw_backtrace, root).call
45
- end
46
-
47
42
  def test_works_on_shorter_backtraces
48
43
  result = ScoutApm::Utils::BacktraceParser.new(raw_backtrace(1), root).call
49
44
 
@@ -54,18 +49,4 @@ class BacktraceParserTest < Minitest::Test
54
49
  result = ScoutApm::Utils::BacktraceParser.new(raw_backtrace, "/Users/scout/different-secrets").call
55
50
  assert_equal 0, result.length
56
51
  end
57
-
58
- def test_excludes_vendor_paths
59
- raw_backtrace = [
60
- "#{root}/vendor/ruby/thing.rb",
61
- "#{root}/app/controllers/users_controller.rb",
62
- "#{root}/vendor/ruby/thing.rb",
63
- "#{root}/config/initializers/inject_something.rb",
64
- ]
65
- result = ScoutApm::Utils::BacktraceParser.new(raw_backtrace, root).call
66
-
67
- assert_equal 2, result.length
68
- assert_equal false, (result[0] =~ %r|app/controllers/users_controller.rb|).nil?
69
- assert_equal false, (result[1] =~ %r|config/initializers/inject_something.rb|).nil?
70
- end
71
52
  end
data/tester.rb ADDED
@@ -0,0 +1,53 @@
1
+ $: << "./lib"
2
+
3
+ require 'scout_apm'
4
+ require 'stacks'
5
+
6
+ class OneTrace
7
+ attr_reader :data
8
+ attr_reader :num
9
+
10
+ def initialize(num)
11
+ puts "Initialized, expecting #{num}"
12
+ @num = num
13
+ @data = []
14
+ end
15
+
16
+ def add(file, line, label, klass)
17
+ @data << [file, line, label, klass]
18
+ end
19
+ end
20
+
21
+ class GlobalVar
22
+ def self.collect(trace)
23
+ puts "***************************************************************"
24
+
25
+ puts "Collected some data in ruby:\n#{trace.data.map{|x| "#{x[0]}:#{x[1]}\t#{x[3]}##{x[2]}" }.join("\n")}"
26
+ end
27
+ end
28
+
29
+ ####################################
30
+ #
31
+ def quux
32
+ while true
33
+ puts "Hello"
34
+ sleep 0.5
35
+ end
36
+ end
37
+
38
+ class Whipple
39
+ def baz
40
+ quux
41
+ end
42
+ end
43
+
44
+ def bar
45
+ w = Whipple.new
46
+ w.baz
47
+ end
48
+
49
+ def foo
50
+ bar
51
+ end
52
+
53
+ foo
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.32
4
+ version: 2.2.0.pre0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes
@@ -9,24 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-11 00:00:00.000000000 Z
12
+ date: 2016-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: minitest
15
+ name: rusage
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :development
20
+ version: 0.2.0
21
+ type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: 0.2.0
28
28
  - !ruby/object:Gem::Dependency
29
- name: mocha
29
+ name: minitest
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
@@ -95,71 +95,27 @@ dependencies:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
- - !ruby/object:Gem::Dependency
99
- name: addressable
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
112
- - !ruby/object:Gem::Dependency
113
- name: guard
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: guard-minitest
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- version: '0'
140
98
  description: Monitors Ruby apps and reports detailed metrics on performance to Scout.
141
99
  email:
142
100
  - support@scoutapp.com
143
101
  executables: []
144
102
  extensions:
145
103
  - ext/allocations/extconf.rb
146
- - ext/rusage/extconf.rb
104
+ - ext/stacks/extconf.rb
147
105
  extra_rdoc_files: []
148
106
  files:
149
107
  - ".gitignore"
150
- - ".rubocop.yml"
151
108
  - CHANGELOG.markdown
152
109
  - Gemfile
153
- - Guardfile
154
110
  - LICENSE.md
155
111
  - README.markdown
156
112
  - Rakefile
157
113
  - data/cacert.pem
158
114
  - ext/allocations/allocations.c
159
115
  - ext/allocations/extconf.rb
160
- - ext/rusage/README.md
161
- - ext/rusage/extconf.rb
162
- - ext/rusage/rusage.c
116
+ - ext/stacks/extconf.rb
117
+ - ext/stacks/scout_atomics.h
118
+ - ext/stacks/stacks.c
163
119
  - lib/scout_apm.rb
164
120
  - lib/scout_apm/agent.rb
165
121
  - lib/scout_apm/agent/logging.rb
@@ -167,22 +123,23 @@ files:
167
123
  - lib/scout_apm/app_server_load.rb
168
124
  - lib/scout_apm/attribute_arranger.rb
169
125
  - lib/scout_apm/background_job_integrations/delayed_job.rb
170
- - lib/scout_apm/background_job_integrations/resque.rb
171
126
  - lib/scout_apm/background_job_integrations/sidekiq.rb
172
- - lib/scout_apm/background_recorder.rb
173
127
  - lib/scout_apm/background_worker.rb
174
128
  - lib/scout_apm/bucket_name_splitter.rb
175
129
  - lib/scout_apm/call_set.rb
130
+ - lib/scout_apm/capacity.rb
176
131
  - lib/scout_apm/config.rb
177
132
  - lib/scout_apm/context.rb
178
- - lib/scout_apm/debug.rb
133
+ - lib/scout_apm/deploy_integrations/capistrano_2.cap
134
+ - lib/scout_apm/deploy_integrations/capistrano_2.rb
135
+ - lib/scout_apm/deploy_integrations/capistrano_3.cap
136
+ - lib/scout_apm/deploy_integrations/capistrano_3.rb
179
137
  - lib/scout_apm/environment.rb
180
138
  - lib/scout_apm/fake_store.rb
181
139
  - lib/scout_apm/framework_integrations/rails_2.rb
182
140
  - lib/scout_apm/framework_integrations/rails_3_or_4.rb
183
141
  - lib/scout_apm/framework_integrations/ruby.rb
184
142
  - lib/scout_apm/framework_integrations/sinatra.rb
185
- - lib/scout_apm/git_revision.rb
186
143
  - lib/scout_apm/histogram.rb
187
144
  - lib/scout_apm/ignored_uris.rb
188
145
  - lib/scout_apm/instant/assets/xmlhttp_instrumentation.html
@@ -191,8 +148,8 @@ files:
191
148
  - lib/scout_apm/instruments/.DS_Store
192
149
  - lib/scout_apm/instruments/action_controller_rails_2.rb
193
150
  - lib/scout_apm/instruments/action_controller_rails_3_rails4.rb
194
- - lib/scout_apm/instruments/action_view.rb
195
151
  - lib/scout_apm/instruments/active_record.rb
152
+ - lib/scout_apm/instruments/delayed_job.rb
196
153
  - lib/scout_apm/instruments/elasticsearch.rb
197
154
  - lib/scout_apm/instruments/grape.rb
198
155
  - lib/scout_apm/instruments/http_client.rb
@@ -207,13 +164,11 @@ files:
207
164
  - lib/scout_apm/instruments/process/process_memory.rb
208
165
  - lib/scout_apm/instruments/rails_router.rb
209
166
  - lib/scout_apm/instruments/redis.rb
210
- - lib/scout_apm/instruments/resque.rb
211
167
  - lib/scout_apm/instruments/sinatra.rb
212
168
  - lib/scout_apm/job_record.rb
213
169
  - lib/scout_apm/layaway.rb
214
170
  - lib/scout_apm/layaway_file.rb
215
171
  - lib/scout_apm/layer.rb
216
- - lib/scout_apm/layer_children_set.rb
217
172
  - lib/scout_apm/layer_converters/allocation_metric_converter.rb
218
173
  - lib/scout_apm/layer_converters/converter_base.rb
219
174
  - lib/scout_apm/layer_converters/depth_first_walker.rb
@@ -223,7 +178,6 @@ files:
223
178
  - lib/scout_apm/layer_converters/request_queue_time_converter.rb
224
179
  - lib/scout_apm/layer_converters/slow_job_converter.rb
225
180
  - lib/scout_apm/layer_converters/slow_request_converter.rb
226
- - lib/scout_apm/limited_layer.rb
227
181
  - lib/scout_apm/metric_meta.rb
228
182
  - lib/scout_apm/metric_set.rb
229
183
  - lib/scout_apm/metric_stats.rb
@@ -231,18 +185,13 @@ files:
231
185
  - lib/scout_apm/platform_integrations/cloud_foundry.rb
232
186
  - lib/scout_apm/platform_integrations/heroku.rb
233
187
  - lib/scout_apm/platform_integrations/server.rb
234
- - lib/scout_apm/rack.rb
235
- - lib/scout_apm/remote/message.rb
236
- - lib/scout_apm/remote/recorder.rb
237
- - lib/scout_apm/remote/router.rb
238
- - lib/scout_apm/remote/server.rb
239
188
  - lib/scout_apm/reporter.rb
240
189
  - lib/scout_apm/request_histograms.rb
241
190
  - lib/scout_apm/request_manager.rb
242
191
  - lib/scout_apm/scored_item_set.rb
243
192
  - lib/scout_apm/serializers/app_server_load_serializer.rb
193
+ - lib/scout_apm/serializers/deploy_serializer.rb
244
194
  - lib/scout_apm/serializers/directive_serializer.rb
245
- - lib/scout_apm/serializers/histograms_serializer_to_json.rb
246
195
  - lib/scout_apm/serializers/jobs_serializer_to_json.rb
247
196
  - lib/scout_apm/serializers/metrics_to_json_serializer.rb
248
197
  - lib/scout_apm/serializers/payload_serializer.rb
@@ -255,23 +204,22 @@ files:
255
204
  - lib/scout_apm/server_integrations/thin.rb
256
205
  - lib/scout_apm/server_integrations/unicorn.rb
257
206
  - lib/scout_apm/server_integrations/webrick.rb
207
+ - lib/scout_apm/slow_item_set.rb
258
208
  - lib/scout_apm/slow_job_policy.rb
259
209
  - lib/scout_apm/slow_job_record.rb
260
210
  - lib/scout_apm/slow_request_policy.rb
261
211
  - lib/scout_apm/slow_transaction.rb
262
212
  - lib/scout_apm/stack_item.rb
263
213
  - lib/scout_apm/store.rb
264
- - lib/scout_apm/synchronous_recorder.rb
214
+ - lib/scout_apm/trace_compactor.rb
265
215
  - lib/scout_apm/tracer.rb
266
216
  - lib/scout_apm/tracked_request.rb
267
217
  - lib/scout_apm/utils/active_record_metric_name.rb
268
218
  - lib/scout_apm/utils/backtrace_parser.rb
269
- - lib/scout_apm/utils/gzip_helper.rb
219
+ - lib/scout_apm/utils/fake_stacks.rb
270
220
  - lib/scout_apm/utils/installed_gems.rb
271
221
  - lib/scout_apm/utils/klass_helper.rb
272
222
  - lib/scout_apm/utils/null_logger.rb
273
- - lib/scout_apm/utils/numbers.rb
274
- - lib/scout_apm/utils/scm.rb
275
223
  - lib/scout_apm/utils/sql_sanitizer.rb
276
224
  - lib/scout_apm/utils/sql_sanitizer_regex.rb
277
225
  - lib/scout_apm/utils/sql_sanitizer_regex_1_8_7.rb
@@ -282,34 +230,22 @@ files:
282
230
  - test/data/config_test_1.yml
283
231
  - test/test_helper.rb
284
232
  - test/unit/agent_test.rb
285
- - test/unit/background_job_integrations/sidekiq_test.rb
286
233
  - test/unit/config_test.rb
287
- - test/unit/context_test.rb
288
234
  - test/unit/environment_test.rb
289
- - test/unit/git_revision_test.rb
290
235
  - test/unit/histogram_test.rb
291
236
  - test/unit/ignored_uris_test.rb
292
237
  - test/unit/instruments/active_record_instruments_test.rb
293
- - test/unit/instruments/net_http_test.rb
294
- - test/unit/instruments/percentile_sampler_test.rb
295
238
  - test/unit/layaway_test.rb
296
- - test/unit/layer_children_set_test.rb
297
- - test/unit/limited_layer_test.rb
298
239
  - test/unit/metric_set_test.rb
299
- - test/unit/remote/test_message.rb
300
- - test/unit/remote/test_router.rb
301
- - test/unit/remote/test_server.rb
302
240
  - test/unit/scored_item_set_test.rb
303
241
  - test/unit/serializers/payload_serializer_test.rb
242
+ - test/unit/slow_item_set_test.rb
304
243
  - test/unit/slow_job_policy_test.rb
305
244
  - test/unit/slow_request_policy_test.rb
306
245
  - test/unit/sql_sanitizer_test.rb
307
- - test/unit/store_test.rb
308
- - test/unit/test_tracked_request.rb
309
246
  - test/unit/utils/active_record_metric_name_test.rb
310
247
  - test/unit/utils/backtrace_parser_test.rb
311
- - test/unit/utils/numbers_test.rb
312
- - test/unit/utils/scm.rb
248
+ - tester.rb
313
249
  homepage: https://github.com/scoutapp/scout_apm_ruby
314
250
  licenses:
315
251
  - Proprietary (See LICENSE.md)
@@ -326,44 +262,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
262
  version: '0'
327
263
  required_rubygems_version: !ruby/object:Gem::Requirement
328
264
  requirements:
329
- - - ">="
265
+ - - ">"
330
266
  - !ruby/object:Gem::Version
331
- version: '0'
267
+ version: 1.3.1
332
268
  requirements: []
333
269
  rubyforge_project: scout_apm
334
- rubygems_version: 2.4.5.2
270
+ rubygems_version: 2.2.2
335
271
  signing_key:
336
272
  specification_version: 4
337
273
  summary: Ruby application performance monitoring
338
- test_files:
339
- - test/data/config_test_1.yml
340
- - test/test_helper.rb
341
- - test/unit/agent_test.rb
342
- - test/unit/background_job_integrations/sidekiq_test.rb
343
- - test/unit/config_test.rb
344
- - test/unit/context_test.rb
345
- - test/unit/environment_test.rb
346
- - test/unit/git_revision_test.rb
347
- - test/unit/histogram_test.rb
348
- - test/unit/ignored_uris_test.rb
349
- - test/unit/instruments/active_record_instruments_test.rb
350
- - test/unit/instruments/net_http_test.rb
351
- - test/unit/instruments/percentile_sampler_test.rb
352
- - test/unit/layaway_test.rb
353
- - test/unit/layer_children_set_test.rb
354
- - test/unit/limited_layer_test.rb
355
- - test/unit/metric_set_test.rb
356
- - test/unit/remote/test_message.rb
357
- - test/unit/remote/test_router.rb
358
- - test/unit/remote/test_server.rb
359
- - test/unit/scored_item_set_test.rb
360
- - test/unit/serializers/payload_serializer_test.rb
361
- - test/unit/slow_job_policy_test.rb
362
- - test/unit/slow_request_policy_test.rb
363
- - test/unit/sql_sanitizer_test.rb
364
- - test/unit/store_test.rb
365
- - test/unit/test_tracked_request.rb
366
- - test/unit/utils/active_record_metric_name_test.rb
367
- - test/unit/utils/backtrace_parser_test.rb
368
- - test/unit/utils/numbers_test.rb
369
- - test/unit/utils/scm.rb
274
+ test_files: []
data/.rubocop.yml DELETED
@@ -1,8 +0,0 @@
1
- # 80 is stifling, especially with a few levels of nesting before we even start.
2
- # So bump it to 100 to keep really long lines from creeping in.
3
- Metrics/LineLength:
4
- Max: 100
5
-
6
- Style/UseHashRocketsWithSymbolValues: false
7
-
8
-
data/Guardfile DELETED
@@ -1,42 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- ## Uncomment and set this to only include directories you want to watch
5
- # directories %w(app lib config test spec features) \
6
- # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
-
8
- ## Note: if you are using the `directories` clause above and you are not
9
- ## watching the project directory ('.'), then you will want to move
10
- ## the Guardfile to a watched dir and symlink it back, e.g.
11
- #
12
- # $ mkdir config
13
- # $ mv Guardfile config/
14
- # $ ln -s config/Guardfile .
15
- #
16
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
-
18
- guard :minitest do
19
- # with Minitest::Unit
20
- watch(%r{^test/(.*)\/?test_(.*)\.rb$})
21
- watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
22
- watch(%r{^test/test_helper\.rb$}) { 'test' }
23
-
24
- # with Minitest::Spec
25
- # watch(%r{^spec/(.*)_spec\.rb$})
26
- # watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
27
- # watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
28
-
29
- # Rails 4
30
- # watch(%r{^app/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
31
- # watch(%r{^app/controllers/application_controller\.rb$}) { 'test/controllers' }
32
- # watch(%r{^app/controllers/(.+)_controller\.rb$}) { |m| "test/integration/#{m[1]}_test.rb" }
33
- # watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" }
34
- # watch(%r{^lib/(.+)\.rb$}) { |m| "test/lib/#{m[1]}_test.rb" }
35
- # watch(%r{^test/.+_test\.rb$})
36
- # watch(%r{^test/test_helper\.rb$}) { 'test' }
37
-
38
- # Rails < 4
39
- # watch(%r{^app/controllers/(.*)\.rb$}) { |m| "test/functional/#{m[1]}_test.rb" }
40
- # watch(%r{^app/helpers/(.*)\.rb$}) { |m| "test/helpers/#{m[1]}_test.rb" }
41
- # watch(%r{^app/models/(.*)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
42
- end