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 +4 -4
- data/lib/scout_apm/layaway.rb +2 -5
- data/lib/scout_apm/tracked_request.rb +1 -1
- data/lib/scout_apm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34f85b3a5cafc2172681899d5ea76f3f195d99f7
|
4
|
+
data.tar.gz: 980e4401425f5157ca6ca29bf5a07afeeb99b111
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54d842239ee3867174baf5648e45ae0e8c218c88d23172d2d6c30ad1774f550c4c5e2f71ee428920cb152f96b5e7d7749e8effc4a8876b437243547a14db995d
|
7
|
+
data.tar.gz: 6ac37cb93a70d65b4c77afea11e101064589542015778af6574bc7b836e5841923f57d72bd454aaa2eae98534aef1cdac15f22fb9fd2734ac27357ffb5b47cbe
|
data/lib/scout_apm/layaway.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/scout_apm/version.rb
CHANGED