scout_apm 2.4.14 → 2.4.15

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: c2f05daf2aea310649b012308c81cee4f9de38df
4
- data.tar.gz: 14407e60e5bb3dfb282b8cd92dd7f03e52b1cb12
3
+ metadata.gz: 28790463a370f23fbe18e2147ee6f930f9cb2e5c
4
+ data.tar.gz: 73d2ada7c62fe31cdeac67101f1a2edee66a6577
5
5
  SHA512:
6
- metadata.gz: 8450ba1ff69c5a8b976d27d755e5879cfc3e855f0951862c9ffab2584ac22dae4476792a628b1c50017d7325d60b65ef00b6590a4ec6a23aef01dc6bdbed9a66
7
- data.tar.gz: 543779510c2f4b96fb31308bc25aedf3074a8ad3c4890f7bcf56d78daa1092fbf8f3ee15a0124c331216b832d000118398c321fafcc7d38204be1d5136fd9e89
6
+ metadata.gz: 65ec65774a64c65738bab1281ecfb800997991b8d95b8ab9ab2ee2748928afdb8e9ce0ed6480110d31a3f52e5f08ab11b80afbeca9bcc65b302979916f5a0e8a
7
+ data.tar.gz: 0e77807792aa8f0650febc608365ae0821d3f6a34ed181704a331c63a064e3e3c3e83b94752e2f468ccdde66a12b4579ca2d8b6c06ddc6ab6bddb71c503f411c
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ # 2.4.15
2
+
3
+ * Fix bug that causes no data to be reported to Scout when DataDog is installed (#211)
4
+ * Fix `NoMethodError for LayerChildrenSet` when `log_level: debug` in certain situations.
5
+
1
6
  # 2.4.14
2
7
 
3
8
  * Fix database connection issue when installed in an app also using the Textacular gem
data/README.markdown CHANGED
@@ -38,6 +38,23 @@ Your config file should look like:
38
38
  production:
39
39
  <<: *defaults
40
40
 
41
+ ## DevTrace Quickstart
42
+
43
+ To use DevTrace, our free, no-signup, in-browser development profiler:
44
+
45
+ 1. Add the gem to your Gemfile:
46
+
47
+ ```ruby
48
+ # Gemfile
49
+ gem 'scout_apm'
50
+ ```
51
+
52
+ 2. Start your Rails app with the SCOUT_DEV_TRACE environment variable:
53
+
54
+ ```
55
+ SCOUT_DEV_TRACE=true rails server
56
+ ```
57
+
41
58
  ## Docs
42
59
 
43
60
  For the complete list of supported frameworks, Rubies, configuration options
@@ -142,7 +142,10 @@ module ScoutApm
142
142
  req = ScoutApm::RequestManager.lookup
143
143
  layer = req.current_layer
144
144
  if layer && layer.type == "ActiveRecord"
145
- layer.annotate_layer(payload)
145
+ layer.annotate_layer({
146
+ :class_name => payload[:class_name],
147
+ :record_count => payload[:record_count]
148
+ })
146
149
  elsif layer
147
150
  logger.debug("Expected layer type: ActiveRecord, got #{layer && layer.type}")
148
151
  else
@@ -69,6 +69,14 @@ module ScoutApm
69
69
  end
70
70
  end
71
71
 
72
+ def length
73
+ @children.length
74
+ end
75
+
76
+ def size
77
+ @children.size
78
+ end
79
+
72
80
  # hold off initializing this until we know we need it
73
81
  def init_limited_layers
74
82
  @limited_layers ||= Hash.new { |hash, key| hash[key] = LimitedLayer.new(key) }
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.4.14"
2
+ VERSION = "2.4.15"
3
3
  end
4
4
 
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.4.14
4
+ version: 2.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-02 00:00:00.000000000 Z
12
+ date: 2018-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -390,51 +390,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
390
390
  version: '0'
391
391
  requirements: []
392
392
  rubyforge_project: scout_apm
393
- rubygems_version: 2.4.5.2
393
+ rubygems_version: 2.4.5.5
394
394
  signing_key:
395
395
  specification_version: 4
396
396
  summary: Ruby application performance monitoring
397
- test_files:
398
- - test/data/config_test_1.yml
399
- - test/test_helper.rb
400
- - test/unit/agent_test.rb
401
- - test/unit/background_job_integrations/sidekiq_test.rb
402
- - test/unit/config_test.rb
403
- - test/unit/context_test.rb
404
- - test/unit/db_query_metric_set_test.rb
405
- - test/unit/db_query_metric_stats_test.rb
406
- - test/unit/environment_test.rb
407
- - test/unit/extensions/periodic_callbacks_test.rb
408
- - test/unit/extensions/transaction_callbacks_test.rb
409
- - test/unit/fake_store_test.rb
410
- - test/unit/git_revision_test.rb
411
- - test/unit/histogram_test.rb
412
- - test/unit/ignored_uris_test.rb
413
- - test/unit/instruments/active_record_instruments_test.rb
414
- - test/unit/instruments/net_http_test.rb
415
- - test/unit/instruments/percentile_sampler_test.rb
416
- - test/unit/layaway_test.rb
417
- - test/unit/layer_children_set_test.rb
418
- - test/unit/layer_converters/depth_first_walker_test.rb
419
- - test/unit/layer_converters/metric_converter_test.rb
420
- - test/unit/layer_converters/stubs.rb
421
- - test/unit/limited_layer_test.rb
422
- - test/unit/logger_test.rb
423
- - test/unit/metric_set_test.rb
424
- - test/unit/remote/test_message.rb
425
- - test/unit/remote/test_router.rb
426
- - test/unit/remote/test_server.rb
427
- - test/unit/scored_item_set_test.rb
428
- - test/unit/serializers/payload_serializer_test.rb
429
- - test/unit/slow_job_policy_test.rb
430
- - test/unit/slow_request_policy_test.rb
431
- - test/unit/sql_sanitizer_test.rb
432
- - test/unit/store_test.rb
433
- - test/unit/tracer_test.rb
434
- - test/unit/tracked_request_test.rb
435
- - test/unit/transaction_test.rb
436
- - test/unit/transaction_time_consumed_test.rb
437
- - test/unit/utils/active_record_metric_name_test.rb
438
- - test/unit/utils/backtrace_parser_test.rb
439
- - test/unit/utils/numbers_test.rb
440
- - test/unit/utils/scm.rb
397
+ test_files: []