scout_apm 1.2.0.pre10 → 1.2.0.pre11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/scout_apm/agent/reporting.rb +2 -2
- 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: adbd8e298e9d7d01a10d039aee7bb329c9e8c76c
|
4
|
+
data.tar.gz: 4b99ca47a3b64f4a6093fe807633818f5ea879ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0a30e4e492995478036a4b7bc84938e00bcae80fe859f5eb5f5cfb15965cc30201c87c2cecba4d43b70504d8364db5302e02b0725fb14303baf969c184783d2
|
7
|
+
data.tar.gz: 172e1d1563555b07737a628176c023092d0c47addadae5a9cbf7cabf80b712b613823671a3438cba9a6c1d442655b4345cfcbfe456e2d2fda6671ab15403239b
|
@@ -24,9 +24,9 @@ module ScoutApm
|
|
24
24
|
report_to_server
|
25
25
|
end
|
26
26
|
|
27
|
-
|
28
|
-
MAX_AGE_TO_REPORT = 10.minutes
|
27
|
+
MAX_AGE_TO_REPORT = (10 * 60) # ten minutes as seconds
|
29
28
|
|
29
|
+
# In a running app, one process will get one period ready for delivery, the others will see 0.
|
30
30
|
def report_to_server
|
31
31
|
reporting_periods = layaway.periods_ready_for_delivery
|
32
32
|
reporting_periods.reject! {|rp| rp.timestamp.age_in_seconds > MAX_AGE_TO_REPORT }
|
data/lib/scout_apm/version.rb
CHANGED