sidekiq_prometheus 1.4.0 → 1.5.0

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: bd485c3e82871eb0083e0f8c66b506d72624cdc48bcee1fa2e3c0d45eee9a8fa
4
- data.tar.gz: a1e2fa1f170d6c2115c6de05bb9f029f4bc6c54f0fa208a683c9a074afc06c06
3
+ metadata.gz: 49989dd6e8b4c7c651f70d69e674630900cf5eb3150c4be85df6becb83fc1d18
4
+ data.tar.gz: c42b2eac238eaa7c435628962872c750c08b1430a8166219de0343c4fe987fa5
5
5
  SHA512:
6
- metadata.gz: f52ccff4847c333ba9c50d9e5033214f0d739edd4eca461b1b9b5406c6d236505b0e3e7fcc04f7f26bc460debb16e0ada2f1834ffc49c73b24f8c9369fe21bff
7
- data.tar.gz: 7e0e854ab573ead62b8ff19a1a8d736587e00250a4fd447a9bbc393d1765c7eab8083d6beb9f14ac7e766d88d28875088f8ee5a3bf2c77d34a1d00af5a573136
6
+ metadata.gz: 23702691b261c1f0ea0984cccca1267cb5ad3be7a3ebd0ea4c7591d12bb9403e5104cedc372b023f440e080a71ff5c432022f35527ff1e898dba5d07a36ab056
7
+ data.tar.gz: 84197b360bbe8c54da5c1e83911643a274a132164bf699d2f8672fbc908e93216918dc405f829f919f9a27fbbaf25d4bed26ff132428f29d14599a5eed1f1d73
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  CHANGELOG
2
2
 
3
+
4
+ <a name="v1.5.0"></a>
5
+ ## [v1.5.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.4.0...v1.5.0) (2021-08-02)
6
+
7
+ ### Pull Requests
8
+
9
+ * Merge pull request [#23](https://github.com/fastly/sidekiq-prometheus/issues/23) from fastly/rainy/add-error-class-label
10
+
11
+
12
+ <a name="v1.4.0"></a>
13
+ ## [v1.4.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.3.0...v1.4.0) (2021-03-30)
14
+
15
+ ### Pull Requests
16
+
17
+ * Merge pull request [#21](https://github.com/fastly/sidekiq-prometheus/issues/21) from Kevinrob/patch-1
18
+
19
+
3
20
  <a name="v1.3.0"></a>
4
21
  ## [v1.3.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.2.0...v1.3.0) (2021-03-26)
5
22
 
@@ -30,7 +30,8 @@ class SidekiqPrometheus::JobMetrics
30
30
 
31
31
  result
32
32
  rescue StandardError => e
33
- registry[:sidekiq_job_failed].increment(labels: labels)
33
+ err_label = { :error_class => e.class.to_s }
34
+ registry[:sidekiq_job_failed].increment(labels: err_label.merge(labels))
34
35
  raise e
35
36
  ensure
36
37
  registry[:sidekiq_job_count].increment(labels: labels)
@@ -64,7 +64,7 @@ module SidekiqPrometheus::Metrics
64
64
  { name: :sidekiq_job_failed,
65
65
  type: :counter,
66
66
  docstring: 'Count of failed Sidekiq jobs',
67
- labels: JOB_LABELS, },
67
+ labels: JOB_LABELS + [:error_class], },
68
68
  { name: :sidekiq_job_success,
69
69
  type: :counter,
70
70
  docstring: 'Count of successful Sidekiq jobs',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SidekiqPrometheus
4
- VERSION = '1.4.0'
4
+ VERSION = '1.5.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_prometheus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Eklund
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-03-30 00:00:00.000000000 Z
12
+ date: 2021-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.0.6
185
+ rubygems_version: 3.1.6
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Prometheus Instrumentation for Sidekiq