pliny-librato 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/lib/pliny/librato/metrics/backend.rb +15 -3
- data/lib/pliny/librato/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8abe765deee2e0062ffa91a32cab945b4dba9df8bb94fb580785f1381dd076e6
|
4
|
+
data.tar.gz: d6d32ae47fa52196638ec90489f315ce6f5db932b6062efb0368f7b4082cbfcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c5fb46d1475203bfbcf135ca0e912e707037aa920c1e7186bfa6447b71cb9d19315247b1fa5ddde76e35fba23de6def70ed853e74d7f1789700566d3549ff2a
|
7
|
+
data.tar.gz: c2ad4c8cc167fffe84fb197b94f871dd4b37d2c6bcf733c57bece01b05becd7612f0776b285b17dbc0e078b2f56f452184e9654e11ca6be0b2993d0089f9eb7d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'librato/metrics'
|
2
2
|
require 'pliny/error_reporters'
|
3
|
+
require 'pliny/log'
|
3
4
|
require 'librato/collector'
|
4
5
|
|
5
6
|
module Pliny
|
@@ -56,7 +57,9 @@ module Pliny
|
|
56
57
|
@timer = Thread.new do
|
57
58
|
loop do
|
58
59
|
sleep interval
|
59
|
-
|
60
|
+
wrap_errors do
|
61
|
+
flush_librato
|
62
|
+
end
|
60
63
|
end
|
61
64
|
end
|
62
65
|
end
|
@@ -77,9 +80,18 @@ module Pliny
|
|
77
80
|
end
|
78
81
|
|
79
82
|
def sync(&block)
|
80
|
-
|
83
|
+
wrap_errors do
|
84
|
+
@mutex.synchronize(&block)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
def wrap_errors
|
89
|
+
yield
|
81
90
|
rescue => error
|
82
|
-
|
91
|
+
begin
|
92
|
+
Pliny::ErrorReporters.notify(error)
|
93
|
+
rescue
|
94
|
+
end
|
83
95
|
end
|
84
96
|
end
|
85
97
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pliny-librato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Appleton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: librato-metrics
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.7.3
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: A Librato metrics reporter backend for pliny
|