mettric 0.3.1 → 0.3.2

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: d08f830dfb547f14ad93a6bd3b5d7a4c04911c3c
4
- data.tar.gz: cd463d733a96623a3af220423cdb29884ff5303a
3
+ metadata.gz: 1c9d5638b790687d92dd7179b82023a1e9f03182
4
+ data.tar.gz: 2ede7b8afe717653b2de408c69494eacd6eda754
5
5
  SHA512:
6
- metadata.gz: f3d10574f3e4fd6ae04decb90bf4b44d27cec2939695239c0498f6d04cde8ecca44a1b03b8f51da69fbade802eb6d307fe26cfeb9a991fcdc2dba42c0cad390f
7
- data.tar.gz: 5afa53bccdd62a397d58e5463eb63bb17625159ec703698c9fa6756a2f3d2b363dd68d6d8776afa08992811bb4f5590c2a439f8f03daa303278c90bc869b7cf6
6
+ metadata.gz: d1bc4aaa3ab2d115fec09a5330186d382564f67bf25f552a2b59c0f5a36bd304df1fd5824c83a417b2ca7f9c804a3c6c94e43553e2c93b9a2637a1f3cbda3afa
7
+ data.tar.gz: 075cd837413962f4c9fcae7d9e8350f0613786d406da0271daa6b63253e30115165ef7b01d3b4179c48187e469cb2aec11d27dca6f01404d6c5f3446f9be13e5
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ 0.3.2 (2016-08-09)
2
+ ==================
3
+ - Fix code for not raising Mettric::Errors more
4
+
1
5
  0.3.1 (2016-08-09)
2
6
  ==================
3
7
  - Fix code for not raising Mettric::Errors
@@ -28,14 +28,16 @@ class Mettric::SidekiqMiddleware
28
28
  service = "sidekiq.#{queue.to_s.underscore}.#{worker.class.name.underscore}"
29
29
 
30
30
  # Yield & time
31
- Mettric.time(service: "#{service}.duration", tags: ['sidekiq']) do
31
+ (service: "#{service}.duration", tags: ['sidekiq']) do
32
32
  yield
33
33
  end
34
34
 
35
35
  # Track success
36
- Mettric.event(service: "#{service}.success", tags: ['sidekiq'])
36
+ 🛎(service: "#{service}.success", tags: ['sidekiq'])
37
37
  rescue => e
38
- Mettric.event(service: "#{service}.failure", tags: ['sidekiq', 'error'], description: e.to_s)
38
+ 🛎(service: "#{service}.failure", tags: ['sidekiq', 'error'], description: e.to_s) rescue nil
39
+
40
+ # Make sure we don't cause trouble
39
41
  raise unless e < Mettric::Error
40
42
  end
41
43
  end
@@ -1,3 +1,3 @@
1
1
  class Mettric
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
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: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns