sidekiq-instrument 0.5.0 → 0.5.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba857b68ec105ba55cf962fac3549c2b0c3949859bcebbb2363087ce2965241
|
4
|
+
data.tar.gz: 99d18adae251771f64a2b1e0f9088c2bf3c1863f9a8a0ec8ebfc40caa3052a0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e34e0ebf291cf1a869013b042613936c367f84116a2a582ea463dbd9b8bf00b7a11e4fed8dbc87d8ac5946e8d590dbcce769e87394ca75a0906b234440ac746c
|
7
|
+
data.tar.gz: a9af77fa66acd59ba2552481ede5c24ce308befd307dcd86f7b79552a1d8e8a7665b8c9a6a2e97bdb49edc8f890dc862fcadd3b8d4c41ac38021da3ff852f621
|
@@ -10,8 +10,9 @@ module Sidekiq::Instrument
|
|
10
10
|
class_instance = klass.new
|
11
11
|
Statter.statsd.increment(metric_name(class_instance, 'enqueue'))
|
12
12
|
Statter.dogstatsd&.increment('sidekiq.enqueue', worker_dog_options(class_instance))
|
13
|
-
|
14
|
-
|
13
|
+
result = yield
|
14
|
+
Statter.dogstatsd&.flush(sync: true)
|
15
|
+
result
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
@@ -38,6 +38,8 @@ module Sidekiq::Instrument
|
|
38
38
|
Statter.statsd.gauge("shared.sidekiq.#{queue.name}.latency", queue.latency)
|
39
39
|
Statter.dogstatsd&.gauge('sidekiq.queue.latency', queue.latency, tags: ["queue:#{queue.name}"])
|
40
40
|
end
|
41
|
+
|
42
|
+
Statter.dogstatsd&.flush(sync: true)
|
41
43
|
end
|
42
44
|
end
|
43
45
|
end
|
data/sidekiq-instrument.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.add_dependency 'sidekiq', '>= 4.2', '< 7'
|
20
20
|
spec.add_dependency 'statsd-instrument', '>= 2.0.4'
|
21
|
-
spec.add_dependency 'dogstatsd-ruby', '~> 5.5
|
21
|
+
spec.add_dependency 'dogstatsd-ruby', '~> 5.5'
|
22
22
|
spec.add_dependency 'activesupport', '>= 5.1', '< 7'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 2.0', '>= 2.0.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-instrument
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loan Application Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 5.5
|
53
|
+
version: '5.5'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 5.5
|
60
|
+
version: '5.5'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: activesupport
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|