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 +4 -4
- data/CHANGELOG.markdown +1 -1
- data/lib/mettric/sidekiq_middleware.rb +2 -9
- data/lib/mettric/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e72848b9b356c3b3a0addaf524e59207429e2c6
|
4
|
+
data.tar.gz: 2d655d11eeb5a3abd907add4a29b3a2609978541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb250683a0b268de922c5ab681c52850201e73ca5a7958bf8eb0ee2c6c147ebf935a89ca57abc9abcd2de5e7cacbb1f972ff1340c5aefd6c2e9f41d0bd93f310
|
7
|
+
data.tar.gz: 6c03a06660586e111b5a6742b5ce2fbee5f8c36888585dc390ac4f7b417b5cfb7151c4f54eae7578be1bf0435a5e0f471a0ade50cf352db497c8507aab31e0fd
|
data/CHANGELOG.markdown
CHANGED
@@ -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:
|
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
|
|
data/lib/mettric/version.rb
CHANGED