bc-prometheus-ruby 0.2.0 → 0.2.1

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: 6b7632ea975f9fc41399d9a24624eeeadafc08065aff14ab7825713d0aa21757
4
- data.tar.gz: daf8ffa859833893d9ab6d70ca06605820c77e47b42382317b5ad7ee2aab65bc
3
+ metadata.gz: cf312395a8013ec6faae2f338f74480cdd6b419ea117f0e872fd161c4da54c94
4
+ data.tar.gz: f149b260bae32001429d95ed39a55f40060feb47412fc8df205ddf2974259374
5
5
  SHA512:
6
- metadata.gz: 980d28e7517b613fe7296709638c27d4ef69e93533d7ff81701771651d9dbaac11e23dd08eb22a59edea4d804fb21903c888c5f2f46159fddd9c2b4942097fd4
7
- data.tar.gz: 367ea000ef4cff7ad04da3fe3701eb890f565a2c259b10e624cf48caa62c9d1c91d3d00f3161702f86dacce4cc38ccf3411faf92881e2dcb984afab7d1a3e634
6
+ metadata.gz: 42f9133f0ef55104154f4da0524895f57f9ebbbaf79c03e3af959c5cd1603782a9b27d92d20f1c349b4119c204b0f23ab37d51ae669055a4aa01a170f9db72ff
7
+ data.tar.gz: 99163c006b2e1beaa5a06612ed59bb437bfb123022cfc2f214d9a3974ebf15a283fd2e3596cbf1b676ebc8c625da09dbac5738074fa675f68b93e3023c9440d3
@@ -2,6 +2,10 @@ Changelog for the bc-prometheus-ruby gem.
2
2
 
3
3
  ### Pending Release
4
4
 
5
+ ### 0.2.1
6
+
7
+ - Prevent starting of Puma integration if Puma is not loaded
8
+
5
9
  ### 0.2.0
6
10
 
7
11
  - Add the ability to pass custom collectors and type collectors to the web instrumenter
@@ -28,10 +28,12 @@ module Bigcommerce
28
28
  def self.start(client: nil, frequency: nil)
29
29
  return unless puma_enabled?
30
30
 
31
- ::PrometheusExporter::Instrumentation::Puma.start(
32
- client: client || ::Bigcommerce::Prometheus.client,
33
- frequency: frequency || ::Bigcommerce::Prometheus.puma_collection_frequency
34
- )
31
+ if puma_enabled?
32
+ ::PrometheusExporter::Instrumentation::Puma.start(
33
+ client: client || ::Bigcommerce::Prometheus.client,
34
+ frequency: frequency || ::Bigcommerce::Prometheus.puma_collection_frequency
35
+ )
36
+ end
35
37
  if active_record_enabled?
36
38
  ::PrometheusExporter::Instrumentation::ActiveRecord.start(
37
39
  client: client || ::Bigcommerce::Prometheus.client,
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Bigcommerce
19
19
  module Prometheus
20
- VERSION = '0.2.0'
20
+ VERSION = '0.2.1'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bc-prometheus-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-18 00:00:00.000000000 Z
11
+ date: 2020-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake