bc-prometheus-ruby 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: f00a709f1c3d334b0bfa63aca1ef5ea7d40057968611080ef95195b98265a197
4
- data.tar.gz: 724c6482bd0797adce463d739d4754cc6f032ac695aa513be8b69be006052076
3
+ metadata.gz: 8c4c4c0a02b669f30bb1fe0577bff4f4ea621b071e196ef4da9cf6fbcaf3cdc2
4
+ data.tar.gz: 63df1c931c201e6553130283cbce1970b43cc1801c0522249b9a2661821c7f12
5
5
  SHA512:
6
- metadata.gz: 45ac7158f6a286ab1190a9ae30d202f1f15aaf611c95fe8b34a76e5b27e31e7cc5154ef5e73482706ddf66b6fccbad8577f2b7e395603272b0cfcd671196b196
7
- data.tar.gz: 3bf492901aaf4116138eeef7e23085e8165ff4922da54cedae79084933f375a1c54fb395714b5e04806ee14aabdb41e6745fe60dbb30ef5a85203f5763c9aec0
6
+ metadata.gz: b248ce10ec9d1a7e2d836fed0ddac2a294fe93878aae36b9b43681359ce34199d558bb2ba1b82a1eeeba23b4db9f6f22d6085ff5c0c28e4118dcea55bcda689c
7
+ data.tar.gz: 3351143d764d3057000302c228f988b024a25bda4aa75c6afa5a38a858827e5f24552f70d471007a3c2f9f4ca7cc00dbb94a6fec8ce468ac8dbf253a896fc6e0
@@ -2,7 +2,7 @@ Changelog for the bc-prometheus-ruby gem.
2
2
 
3
3
  h3. Pending Release
4
4
 
5
- h3. 0.1.2
5
+ h3. 0.1.3
6
6
 
7
7
  - Move to bigcommerce fork of multitrap to handle IGNORE clauses more cleanly
8
8
 
@@ -15,6 +15,7 @@
15
15
  # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
16
  # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
17
  #
18
+ require 'bigcommerce/multitrap'
18
19
  require 'net/http'
19
20
  require 'prometheus_exporter'
20
21
  require 'prometheus_exporter/server'
@@ -67,7 +67,8 @@ module Bigcommerce
67
67
  yield
68
68
  @run_thread.join
69
69
  rescue StandardError => e
70
- @logger.error "[bigcommerce-prometheus] Server crashed: #{e.message}"
70
+ warn "[bigcommerce-prometheus] Server crashed: #{e.message}"
71
+ stop
71
72
  end
72
73
 
73
74
  ##
@@ -77,9 +78,9 @@ module Bigcommerce
77
78
  @server.stop!
78
79
  @run_thread.kill
79
80
  @running = false
80
- @logger.info "[bigcommerce-prometheus][#{@process_name}] Prometheus exporter cleanly shut down"
81
+ STDOUT.puts "[bigcommerce-prometheus][#{@process_name}] Prometheus exporter cleanly shut down"
81
82
  rescue ::StandardError => e
82
- @logger.error "[bigcommerce-prometheus][#{@process_name}] Failed to stop exporter: #{e.message}"
83
+ warn "[bigcommerce-prometheus][#{@process_name}] Failed to stop exporter: #{e.message}"
83
84
  end
84
85
 
85
86
  ##
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Bigcommerce
19
19
  module Prometheus
20
- VERSION = '0.1.2'
20
+ VERSION = '0.1.3'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bc-prometheus-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick