mettric 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: 8fd01d8d2f12be7b467a9fd8babaccbdf873e7cc
4
- data.tar.gz: e36ebf89466f62855160699d992c18a742826cd5
3
+ metadata.gz: 6e72848b9b356c3b3a0addaf524e59207429e2c6
4
+ data.tar.gz: 2d655d11eeb5a3abd907add4a29b3a2609978541
5
5
  SHA512:
6
- metadata.gz: 7d76f9127dd7917457842ecaa1f25620139790139126bdd57dfe5b11d7e64ae4121e1c536ed64ca5f26ed3fa13024d0f2c5b17c6a178e3467927da4a2e21541c
7
- data.tar.gz: 2048afba553355767a530e024820699492d1525b1e5608d1cecaed72bf168babb9a4dc8235f6a69fefa414121251d084b94521828f5edd7f575810e2d65aac73
6
+ metadata.gz: fb250683a0b268de922c5ab681c52850201e73ca5a7958bf8eb0ee2c6c147ebf935a89ca57abc9abcd2de5e7cacbb1f972ff1340c5aefd6c2e9f41d0bd93f310
7
+ data.tar.gz: 6c03a06660586e111b5a6742b5ce2fbee5f8c36888585dc390ac4f7b417b5cfb7151c4f54eae7578be1bf0435a5e0f471a0ade50cf352db497c8507aab31e0fd
@@ -1,4 +1,4 @@
1
- 1.0.0 (2016-08-19)
1
+ 1.0.1 (2016-08-19)
2
2
  ==================
3
3
  - Change behaviour of Mettric.time and ⏱
4
4
 
@@ -28,17 +28,10 @@ class Mettric::SidekiqMiddleware
28
28
  service = "sidekiq.#{queue.to_s.underscore}.#{worker.class.name.underscore}"
29
29
 
30
30
  # Yield & time
31
- ⏱(service: "#{service}.duration", tags: ['sidekiq']) do
31
+ ⏱(service: service, tags: ['sidekiq']) do
32
32
  yield
33
33
  end
34
-
35
- # Track success
36
- 🛎(service: "#{service}.success", tags: ['sidekiq'])
37
- rescue => e
38
- 🛎(service: "#{service}.failure", tags: ['sidekiq', 'error'], description: e.to_s) rescue nil
39
-
40
- # Make sure we don't cause trouble
41
- raise unless e.class < Mettric::Error
34
+ rescue Mettric::Error => _e
42
35
  end
43
36
  end
44
37
 
@@ -1,3 +1,3 @@
1
1
  class Mettric
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mettric
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns