scout_apm 2.4.11 → 2.4.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b51f36211c52637ac2eba181cf772f6e80e4476f
4
- data.tar.gz: fef360f94b747d5fe67acb6fcc1ced25ddf80dce
3
+ metadata.gz: a7e5d2b9fe9d2fd469d56bda28c282bd2b100d35
4
+ data.tar.gz: 3da3eba76be22b53891292dca9675c3dd03b198a
5
5
  SHA512:
6
- metadata.gz: a18c8bcc6c39c1d7448b2c715e006e7498db48973e1789b60f585e4357393c545033e5fe677aa11ea2d6f4a16b2b396c579575fad3758c464680317f48f5dfa2
7
- data.tar.gz: d5aea617adf94ef945769198b42e995423fc9dec15dff9a57a292326bb535da20596bb9908c205315051be617b7ad3d08f640e95fa39470476b69577121e07fa
6
+ metadata.gz: fd1c158b0acae2f310e15312af1eb7a258cbbf1fa4566e609c40eca4157406d54d2a50e9c13cde6d7c82af52ccc3d0e76c4f8d6cfb8b05a151da2da29f1b1550
7
+ data.tar.gz: 561089fdc52667d956594f473b60086d5c3d5a536936a84963c5e28a30e2c4ef5b4ef211b6ddd833b58044ad4b18acd5e4941e945b337032b4f7f281f550db6d
@@ -1,3 +1,7 @@
1
+ # 2.4.12
2
+
3
+ * Calculates DelayedJob queue latency correctly when jobs are scheduled to run in the future
4
+
1
5
  # 2.4.11
2
6
 
3
7
  * Adds transaction + periodic reporting callback extension support
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in scout_apm.gemspec
4
4
  gemspec
@@ -53,7 +53,7 @@ module ScoutApm
53
53
  req = ScoutApm::RequestManager.lookup
54
54
 
55
55
  begin
56
- latency = Time.now - job.created_at
56
+ latency = Time.now - [job.created_at, job.run_at].max
57
57
  req.annotate_request(:queue_latency => latency)
58
58
  rescue
59
59
  end
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.4.11"
2
+ VERSION = "2.4.12"
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.11
4
+ version: 2.4.12
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-04-20 00:00:00.000000000 Z
12
+ date: 2018-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest