appsignal 1.2.1.beta.2 → 1.2.1.beta.3

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: a3adbe0e670d7699320eaa00fb6fd5241b5633be
4
- data.tar.gz: 133762d96801cb15b8c31afa794a98dd1085dd03
3
+ metadata.gz: bd9200040508d9138c97445198599483101eca6e
4
+ data.tar.gz: e4911f80247fed86b0ee7b78772d5691878d9966
5
5
  SHA512:
6
- metadata.gz: c0615b6e08b91f9717dc3f2eb3309c17e0caafdf10111e47e8f319a862f422ba84fa5e9554d4316e8ab80ce79a6b6d99b8bc7c9230ef960af8c0c94a38c4ca89
7
- data.tar.gz: f6692ce6ad5da7d216d77fb71df603ec45afbf725f5322efe628ad10e6a099ea3f7dd85f00c9ec0a1123d0fee657c263f3e9dfcfd07690ab9779175b58a97b3b
6
+ metadata.gz: add810e5c216d01bbc62a1d9f6e56214820d3c71a0066b316c9ada7ecc417787331078e1a9dc6f11c5478c8e6f569690eff81cccc4b979c71e411a12ae1694ae
7
+ data.tar.gz: 0b36322133d1be2ee40ba11791391762d807d163532ce64c6ec9745f1ba630a2c8fd97d893f2b25960b90ed22cb023ff6b1412fcd253526d8d7a1efa121586b0
@@ -3,6 +3,7 @@
3
3
  * Support bignums when setting queue length
4
4
  * Support for Sequel 4.35
5
5
  * Add env option to skip errors in Sinatra
6
+ * Fix for queue time calculation in Sidekiq (by lucasmazza)
6
7
 
7
8
  # 1.2.0
8
9
  * Restart background thread when FD's are closed
@@ -25,7 +25,8 @@ module Appsignal
25
25
  :method => 'perform',
26
26
  :metadata => formatted_metadata(item),
27
27
  :params => params,
28
- :queue_start => item['enqueued_at']
28
+ :queue_start => item['enqueued_at'],
29
+ :queue_time => (Time.now.to_f - item['enqueued_at'].to_f) * 1000
29
30
  ) do
30
31
  yield
31
32
  end
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.2.1.beta.2'
4
+ VERSION = '1.2.1.beta.3'
5
5
  end
@@ -32,7 +32,8 @@ describe Appsignal::Hooks::SidekiqPlugin do
32
32
  'extra' => 'data'
33
33
  },
34
34
  :params => ['Model', "1"],
35
- :queue_start => Time.parse('01-01-2001 10:00:00UTC')
35
+ :queue_start => Time.parse('01-01-2001 10:00:00UTC'),
36
+ :queue_time => 60000.to_f
36
37
  )
37
38
  end
38
39
 
@@ -62,7 +63,8 @@ describe Appsignal::Hooks::SidekiqPlugin do
62
63
  'queue' => 'default'
63
64
  },
64
65
  :params => ['Model', "1"],
65
- :queue_start => Time.parse('01-01-2001 10:00:00UTC').to_f
66
+ :queue_start => Time.parse('01-01-2001 10:00:00UTC').to_f,
67
+ :queue_time => 60000.to_f
66
68
  )
67
69
  end
68
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1.beta.2
4
+ version: 1.2.1.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman