metrics 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cbe93cad8d2ae777371169af3bd542a153cfeb31179d890602a39ed4f3a8f33
4
- data.tar.gz: 5aba9c27a7c09eb21c63b58e575f3832153680c78e375b73c9f104b8fbdf5eb1
3
+ metadata.gz: d09fc9e1904cb72737025a01e68a6ad963fb05bfb6dc02dce39987a6b7a4877b
4
+ data.tar.gz: aff1567553de8db5cce01a4c0d51dc2dbf5dadc28fa34c66df7c1d390d539a93
5
5
  SHA512:
6
- metadata.gz: 3cfb9ddcfa25ed605b46894810d7ed3e9616ec1c085a6f52a70f7ca38880d45faf9ae9459d36e3e07c97eb0e43e2700f1afbeac4bfbc3442a532e47aed5b5f1a
7
- data.tar.gz: f0288eb553f479647bd285ad54c37f40351d7e11eab1c46240f2a58e89f13d55b5d0176bba368f2268b461f32bac0afbb5cbcea9a3de9a9b9a76648fc39270e7
6
+ metadata.gz: b937797ed321ef56736eff66f632a721c29fdceec34c11d863799f24abcf237c2282f49294b3b7bec95a9538350d7ef6f591eb8b87e19bc5eefd10e000a24e10
7
+ data.tar.gz: 94bff04a35790e6e6f077745a47702c80803a6e01bf6e4a8d3d4d284d14b23051ee3836b714e3d8774c94f653dbe4f725b208199c9a8f577d0732c6e6cb527e3
checksums.yaml.gz.sig CHANGED
Binary file
@@ -35,8 +35,6 @@ module Metrics
35
35
 
36
36
  return provider
37
37
  end
38
-
39
- Config::DEFAULT.prepare
40
38
  else
41
39
  def self.Provider(klass, &block)
42
40
  # Metrics disabled.
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
6
  module Metrics
7
- VERSION = "0.13.0"
7
+ VERSION = "0.14.0"
8
8
  end
data/lib/metrics.rb CHANGED
@@ -9,4 +9,7 @@ require_relative "metrics/tags"
9
9
 
10
10
  # @namespace
11
11
  module Metrics
12
+ if self.enabled?
13
+ Config::DEFAULT.prepare
14
+ end
12
15
  end
data/readme.md CHANGED
@@ -23,6 +23,10 @@ Please see the [project documentation](https://socketry.github.io/metrics/) for
23
23
 
24
24
  Please see the [project releases](https://socketry.github.io/metrics/releases/index) for all releases.
25
25
 
26
+ ### v0.14.0
27
+
28
+ - Don't call `prepare` in `metrics/provider.rb`. It can cause circular loading warnings.
29
+
26
30
  ### v0.13.0
27
31
 
28
32
  - Introduce `metrics:provider:list` command to list all available metrics providers.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.14.0
4
+
5
+ - Don't call `prepare` in `metrics/provider.rb`. It can cause circular loading warnings.
6
+
3
7
  ## v0.13.0
4
8
 
5
9
  - Introduce `metrics:provider:list` command to list all available metrics providers.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.6.7
80
+ rubygems_version: 3.6.9
81
81
  specification_version: 4
82
82
  summary: Application metrics and instrumentation.
83
83
  test_files: []
metadata.gz.sig CHANGED
Binary file