sidekiq-instrument 0.7.4 → 0.7.5

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: c29103ed3ffc948efe59b49ff4df569bf52a6ced1a953ea9ada47a251b2a2d63
4
- data.tar.gz: 1da9a28a99b77c92699a1cbbdccaf2cc7cd95d11a925d2099858ad5ffa616444
3
+ metadata.gz: 80c86d5df7ca90b39edcb4c60ca4a92e1c1e128584bbc78be60f4dd6f75b3d19
4
+ data.tar.gz: 5e6807e9553c968e8ddb61f1cc7061e8798d4e1aca6257ebab86eb29bfd5f3d2
5
5
  SHA512:
6
- metadata.gz: e28f76f957396f1fa28fbe3f0ca737da2443b5bc70487d0389944454dce6720213257eae502c58b056640ad58388d0787c14eb2b5405217aa97766a7c5cb7a0f
7
- data.tar.gz: f99843e887127800d81453e4d569b676ed0a67091d5636d078fc39367bf827d459a1dca21e75d6171cec98799825f72b403ed0358f90dfbda80abcbe6060a7be
6
+ metadata.gz: dca33f186fe4ca74db99a2fe8836047a5bfd499f435c28ebd20601835e43553cabb5565713ea17c2d7e08a5e68bb516622033674dfe5ef96496c8ff56b07ee79
7
+ data.tar.gz: b41c82a0b3d99eaea85fcbf00bcd631a04dc69edd152a849066866dc132ded2ceb9514277f5842fe33944c0c0141016672ab2fca20d26de5130e3d7f56c22e45
data/README.md CHANGED
@@ -81,9 +81,10 @@ For each job, the following metrics will be reported:
81
81
  job is pushed onto the queue.
82
82
  3. **shared.sidekiq._queue_._job_.dequeue**: counter incremented just before
83
83
  worker begins performing a job.
84
- 4. **shared.sidekiq._queue_._job_.runtime**: timer of the total time spent
84
+ 4. **shared.sidekiq._queue_._job_.success**: counter incremented each time a job succeeds.
85
+ 5. **shared.sidekiq._queue_._job_.runtime**: timer of the total time spent
85
86
  in `perform`, in milliseconds.
86
- 5. **shared.sidekiq._queue_._job_.error**: counter incremented each time a
87
+ 6. **shared.sidekiq._queue_._job_.error**: counter incremented each time a
87
88
  job fails.
88
89
 
89
90
  For job retry attempts, metrics 2-5 will still be reported but the enqueue/dequeue metrics
@@ -111,9 +112,10 @@ For each job, the following metrics and tags will be reported:
111
112
  job is pushed onto the queue.
112
113
  3. **sidekiq.dequeue (tags: {queue: _queue_, worker: _job_})**: counter incremented just before
113
114
  worker begins performing a job.
114
- 4. **sidekiq.runtime (tags: {queue: _queue_, worker: _job_})**: timer of the total time spent
115
+ 4. **sidekiq.success (tags: {queue: _queue_, worker: _job_})**: counter incremented each time a job succeeds.
116
+ 5. **sidekiq.runtime (tags: {queue: _queue_, worker: _job_})**: timer of the total time spent
115
117
  in `perform`, in milliseconds.
116
- 5. **sidekiq.error (tags: {queue: _queue_, worker: _job_, error: _errorclass_})**: counter incremented each time a
118
+ 6. **sidekiq.error (tags: {queue: _queue_, worker: _job_, error: _errorclass_})**: counter incremented each time a
117
119
  job fails.
118
120
 
119
121
  For job retry attempts, the above 4 metrics will still be reported but the enqueue/dequeue metrics
@@ -17,6 +17,8 @@ module Sidekiq::Instrument
17
17
  execution_time_ms = (Time.now - start_time) * 1000
18
18
  Statter.dogstatsd&.timing('sidekiq.runtime', execution_time_ms, worker_dog_options(worker, job))
19
19
  Statter.statsd.measure(metric_name(worker, 'runtime'), execution_time_ms)
20
+ Statter.dogstatsd&.increment('sidekiq.success', worker_dog_options(worker, job))
21
+ Statter.statsd.increment(metric_name(worker, 'success'))
20
22
  rescue Exception => e
21
23
  dd_options = worker_dog_options(worker, job)
22
24
  dd_options[:tags] << "error:#{e.class.name}"
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Instrument
3
- VERSION = '0.7.4'
3
+ VERSION = '0.7.5'
4
4
  end
5
5
  end
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.7.4
4
+ version: 0.7.5
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: 2024-09-26 00:00:00.000000000 Z
11
+ date: 2024-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  requirements: []
245
- rubygems_version: 3.3.7
245
+ rubygems_version: 3.3.26
246
246
  signing_key:
247
247
  specification_version: 4
248
248
  summary: StatsD & DogStatsD Instrumentation for Sidekiq