sidekiq-instrument 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq/instrument/middleware/client.rb +3 -2
- data/lib/sidekiq/instrument/middleware/server.rb +2 -0
- data/lib/sidekiq/instrument/version.rb +1 -1
- data/lib/sidekiq/instrument/worker.rb +2 -0
- data/lib/sidekiq/instrument.rb +2 -1
- data/sidekiq-instrument.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3818055d583770879264a519e270abd97900bdadc1fb38bfa341e68d08ea17b7
|
4
|
+
data.tar.gz: 14d508fbe113e65e6093d23ecc6dc3a56ddafb6924200b80af9fe737e42a9914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 651b65e1354e88685c56a1bdc266efc8b1f8234e0e84ebeb4d989ea490f4ad15ab9e0fb3f4952ce7c864a3c1d3821dc5ea648219815915d668070dfaccd3a195
|
7
|
+
data.tar.gz: 91360c3448d562455fff7aa6ceb3d1198f72c88087bd0872bf00923cecd3ebf8d33079595873cba4c76c637eb32edaae671e8a439211d12bda4bc393cc6601ad
|
@@ -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/lib/sidekiq/instrument.rb
CHANGED
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.2
|
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-17 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
|