sidekiq-datadog 0.5.1 → 0.5.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4081ba1d7c98f105056005ee817b0013b0bdad331917644807d9c8669071da6
|
|
4
|
+
data.tar.gz: c782bc25f3477e1d6a3bcca92c39d3fe197cfa9db20373f1244336a29e5f39b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db25b7d0596f3a95c48d6db579b444ceb10f4c6c1981015b7d4f9307171ad76b60a8f6ec8d06b5395a98f1c56b50d791a7887dd78d51e928efed5e451b3855dc
|
|
7
|
+
data.tar.gz: 29b29a9d23f26800633deee60f09cdfd128db8e96ad63a45aad93782dc841f800d1cbbd02a083dae28733897b7aaa8234a89fef59654c3d57c144f216eaa233c
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sidekiq-datadog (0.5.
|
|
4
|
+
sidekiq-datadog (0.5.2)
|
|
5
5
|
dogstatsd-ruby (>= 4.2.0)
|
|
6
6
|
sidekiq
|
|
7
7
|
|
|
@@ -35,7 +35,7 @@ GEM
|
|
|
35
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
36
36
|
rspec-support (~> 3.8.0)
|
|
37
37
|
rspec-support (3.8.0)
|
|
38
|
-
rubocop (0.
|
|
38
|
+
rubocop (0.70.0)
|
|
39
39
|
jaro_winkler (~> 1.5.1)
|
|
40
40
|
parallel (~> 1.10)
|
|
41
41
|
parser (>= 2.6)
|
|
@@ -44,7 +44,7 @@ GEM
|
|
|
44
44
|
unicode-display_width (>= 1.4.0, < 1.7)
|
|
45
45
|
rubocop-performance (1.3.0)
|
|
46
46
|
rubocop (>= 0.68.0)
|
|
47
|
-
ruby-progressbar (1.10.
|
|
47
|
+
ruby-progressbar (1.10.1)
|
|
48
48
|
sidekiq (5.2.7)
|
|
49
49
|
connection_pool (~> 2.2, >= 2.2.2)
|
|
50
50
|
rack (>= 1.5.0)
|
|
@@ -42,7 +42,7 @@ module Sidekiq
|
|
|
42
42
|
|
|
43
43
|
def call(worker, job, queue, *)
|
|
44
44
|
start = Time.now
|
|
45
|
-
clock = Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond)
|
|
45
|
+
clock = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC, :millisecond)
|
|
46
46
|
|
|
47
47
|
begin
|
|
48
48
|
yield
|
|
@@ -56,7 +56,7 @@ module Sidekiq
|
|
|
56
56
|
private
|
|
57
57
|
|
|
58
58
|
def record(worker, job, queue, start, clock, error=nil) # rubocop:disable Metrics/ParameterLists
|
|
59
|
-
msec = Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond) - clock
|
|
59
|
+
msec = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC, :millisecond) - clock
|
|
60
60
|
tags = build_tags(worker, job, queue, error)
|
|
61
61
|
|
|
62
62
|
@statsd.increment @metric_name, tags: tags
|
|
@@ -93,4 +93,16 @@ describe Sidekiq::Middleware::Server::Datadog do
|
|
|
93
93
|
])
|
|
94
94
|
end
|
|
95
95
|
end
|
|
96
|
+
|
|
97
|
+
context 'when sidekiq/api is required' do
|
|
98
|
+
before do
|
|
99
|
+
require 'sidekiq/api'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
it 'should not raise any errors' do
|
|
103
|
+
expect do
|
|
104
|
+
subject.call(worker, { 'enqueued_at' => enqueued_at }, 'default') { 'ok' }
|
|
105
|
+
end.not_to raise_error
|
|
106
|
+
end
|
|
107
|
+
end
|
|
96
108
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sidekiq-datadog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dimitrij Denissenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dogstatsd-ruby
|