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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 071981ac7440cbc14b5460f37cd9fc3323fddf54
4
- data.tar.gz: b8d68e261e3cbe9cb2c5f82570a97018eaec9007
2
+ SHA256:
3
+ metadata.gz: 8abe765deee2e0062ffa91a32cab945b4dba9df8bb94fb580785f1381dd076e6
4
+ data.tar.gz: d6d32ae47fa52196638ec90489f315ce6f5db932b6062efb0368f7b4082cbfcb
5
5
  SHA512:
6
- metadata.gz: bc150f45c85b638a513af396a2f4fbf90de287ffcb5597ea9e4a9ce952f80d2de8ea90d833f1e2dd9c43c0de6d6136029b461666b7aa067e4d894063f049ba07
7
- data.tar.gz: 6cfa86f846a58a4c4af218ba123b2d4548c3832a49b6c3658dd322a831c44138892af3abef8f7e5808ec477301f8693d52fd189b7137454182ea4fa99bdcfb14
6
+ metadata.gz: 4c5fb46d1475203bfbcf135ca0e912e707037aa920c1e7186bfa6447b71cb9d19315247b1fa5ddde76e35fba23de6def70ed853e74d7f1789700566d3549ff2a
7
+ data.tar.gz: c2ad4c8cc167fffe84fb197b94f871dd4b37d2c6bcf733c57bece01b05becd7612f0776b285b17dbc0e078b2f56f452184e9654e11ca6be0b2993d0089f9eb7d
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 0.6.2
10
+
11
+ ### Fixes
12
+
13
+ - Rescue librato errors in timer thread [#14](https://github.com/heroku/pliny-librato/pull/14)
14
+
9
15
  ## 0.6.1
10
16
 
11
17
  ### Fixes
@@ -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
- flush_librato
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
- @mutex.synchronize(&block)
83
+ wrap_errors do
84
+ @mutex.synchronize(&block)
85
+ end
86
+ end
87
+
88
+ def wrap_errors
89
+ yield
81
90
  rescue => error
82
- Pliny::ErrorReporters.notify(error)
91
+ begin
92
+ Pliny::ErrorReporters.notify(error)
93
+ rescue
94
+ end
83
95
  end
84
96
  end
85
97
  end
@@ -1,5 +1,5 @@
1
1
  module Pliny
2
2
  module Librato
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.6.2'.freeze
4
4
  end
5
5
  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.1
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: 2017-03-24 00:00:00.000000000 Z
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.5.1
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