scout_apm 1.2.0.pre2 → 1.2.0.pre3

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: 7d6c0d1a7b075d83263b5dff40c8fbe2b4eab1fc
4
- data.tar.gz: 5f73ca06343930f4bf382db202354ab7acaf12a8
3
+ metadata.gz: 34f85b3a5cafc2172681899d5ea76f3f195d99f7
4
+ data.tar.gz: 980e4401425f5157ca6ca29bf5a07afeeb99b111
5
5
  SHA512:
6
- metadata.gz: 01dced334f85cb89959a6cbd382ca46379d92294c0d559dabb30863db505ed2118e040eb96dd5e9d7266448dd491976f0e6639ac2727ca10edc0592cf6bb68cc
7
- data.tar.gz: 9fadb1d142476b67db70d32d8e49446df6a3092aa6458d2606560f8e732ee441b753e428cce9693bf3287a6aeef37aca8c93d54529241f6529c324c9e6c3f6f3
6
+ metadata.gz: 54d842239ee3867174baf5648e45ae0e8c218c88d23172d2d6c30ad1774f550c4c5e2f71ee428920cb152f96b5e7d7749e8effc4a8876b437243547a14db995d
7
+ data.tar.gz: 6ac37cb93a70d65b4c77afea11e101064589542015778af6574bc7b836e5841923f57d72bd454aaa2eae98534aef1cdac15f22fb9fd2734ac27357ffb5b47cbe
@@ -27,10 +27,7 @@ module ScoutApm
27
27
  file.read_and_write do |existing_data|
28
28
  existing_data ||= Hash.new
29
29
  existing_data.merge(time => reporting_period) {|key, old_val, new_val|
30
- ScoutApm::Agent.instance.logger.debug("Merging Layaway - Time: #{key.to_s}, OldMetrics: #{old_val.metrics.length}, OldSlowTrans: #{old_val.slow_transactions.length}, NewMetrics: #{new_val.metrics.length}, NewSlowTrans: #{new_val.slow_transactions.length}" )
31
- result = old_val.merge_metrics!(new_val.metrics).merge_slow_transactions!(new_val.slow_transactions)
32
- ScoutApm::Agent.instance.logger.debug("Result - Metrics: #{result.metrics.length}, SlowTrans: #{result.slow_transactions.length}" )
33
- result
30
+ old_val.merge_metrics!(new_val.metrics).merge_slow_transactions!(new_val.slow_transactions)
34
31
  }
35
32
  end
36
33
  end
@@ -55,7 +52,7 @@ module ScoutApm
55
52
 
56
53
  # We just want to send anything older than X
57
54
  def should_send?(reporting_period)
58
- reporting_period.timestamp.age_in_seconds > REPORTING_INTERVAL
55
+ reporting_period.timestamp.age_in_seconds > (REPORTING_INTERVAL * 2)
59
56
  end
60
57
  end
61
58
  end
@@ -85,7 +85,7 @@ module ScoutApm
85
85
  # * Collect stackprof info
86
86
  # * Send the request off to be stored
87
87
  def stop_request
88
- ScoutApm::Agent.instance.logger.debug("stop_request: #{annotations[:uri]}" )
88
+ # ScoutApm::Agent.instance.logger.debug("stop_request: #{annotations[:uri]}" )
89
89
  StackProf.stop
90
90
  @stackprof = StackProf.results
91
91
 
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "1.2.0.pre2"
2
+ VERSION = "1.2.0.pre3"
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: 1.2.0.pre2
4
+ version: 1.2.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes