opentelemetry-metrics-api 0.2.0 → 0.4.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 +4 -4
- data/CHANGELOG.md +12 -3
- data/lib/opentelemetry/metrics/instrument/observable_counter.rb +8 -1
- data/lib/opentelemetry/metrics/instrument/observable_gauge.rb +8 -1
- data/lib/opentelemetry/metrics/instrument/observable_up_down_counter.rb +8 -1
- data/lib/opentelemetry/metrics/meter.rb +1 -1
- data/lib/opentelemetry/metrics/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11ca6c01c75f4b661a2b67e40f24312889533c36575170671a7977625a4fb2cb
|
4
|
+
data.tar.gz: 794dd2e1e001e012a4c398d136e9738a598d860970d1f172ba4baa52758f0b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 674ba34d11d3d8e152bbd0d59317e03ec4b984db8541d7a6c15e7d375f9707e89f912be1ed5ce427ac14234d18fa25f7260df0dbb138d6bd192cc46faad17fce
|
7
|
+
data.tar.gz: 352b08c237d6fe34f344130a6c414a092c4d7091f4e675f03e46ceb35a8e9910f258fd7ff328b29fc7fff99e9602c125c429b13a7adc3876afd6d856964ff51b
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,22 @@
|
|
1
1
|
# Release History: opentelemetry-metrics-api
|
2
2
|
|
3
|
+
### v0.4.0 / 2025-08-14
|
4
|
+
|
5
|
+
- ADDED: Support asynchronous instruments: ObservableGauge, ObservableCounter and ObservableUpDownCounter
|
6
|
+
- FIXED: Update max instrument name length from 63 to 255 characters and allow `/` in instrument names
|
7
|
+
|
8
|
+
### v0.3.0 / 2025-02-25
|
9
|
+
|
10
|
+
- ADDED: Support 3.1 Min Version
|
11
|
+
|
3
12
|
### v0.2.0 / 2025-01-08
|
4
13
|
|
5
|
-
|
6
|
-
|
14
|
+
- ADDED: Add synchronous gauge
|
15
|
+
- DOCS: Add documentation for Metrics API instruments
|
7
16
|
|
8
17
|
### v0.1.1 / 2024-10-22
|
9
18
|
|
10
|
-
|
19
|
+
- FIXED: Refactor instrument validation
|
11
20
|
|
12
21
|
### v0.1.0 / 2024-07-31
|
13
22
|
|
@@ -9,7 +9,14 @@ module OpenTelemetry
|
|
9
9
|
module Instrument
|
10
10
|
# No-op implementation of ObservableCounter.
|
11
11
|
class ObservableCounter
|
12
|
-
#
|
12
|
+
# Observe the ObservableCounter with fixed timeout duration.
|
13
|
+
#
|
14
|
+
# @param [int] timeout The timeout duration for callback to run, which MUST be a non-negative numeric value.
|
15
|
+
# @param [Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] attributes
|
16
|
+
# Values must be non-nil and (array of) string, boolean or numeric type.
|
17
|
+
# Array values must not contain nil elements and all elements must be of
|
18
|
+
# the same basic type (string, numeric, boolean).
|
19
|
+
def observe(timeout: nil, attributes: {}); end
|
13
20
|
end
|
14
21
|
end
|
15
22
|
end
|
@@ -9,7 +9,14 @@ module OpenTelemetry
|
|
9
9
|
module Instrument
|
10
10
|
# No-op implementation of ObservableGauge.
|
11
11
|
class ObservableGauge
|
12
|
-
#
|
12
|
+
# Observe the ObservableGauge with fixed timeout duration.
|
13
|
+
#
|
14
|
+
# @param [int] timeout The timeout duration for callback to run, which MUST be a non-negative numeric value.
|
15
|
+
# @param [Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] attributes
|
16
|
+
# Values must be non-nil and (array of) string, boolean or numeric type.
|
17
|
+
# Array values must not contain nil elements and all elements must be of
|
18
|
+
# the same basic type (string, numeric, boolean).
|
19
|
+
def observe(timeout: nil, attributes: {}); end
|
13
20
|
end
|
14
21
|
end
|
15
22
|
end
|
@@ -9,7 +9,14 @@ module OpenTelemetry
|
|
9
9
|
module Instrument
|
10
10
|
# No-op implementation of ObservableUpDownCounter.
|
11
11
|
class ObservableUpDownCounter
|
12
|
-
#
|
12
|
+
# Observe the ObservableUpDownCounter with fixed timeout duration.
|
13
|
+
#
|
14
|
+
# @param [int] timeout The timeout duration for callback to run, which MUST be a non-negative numeric value.
|
15
|
+
# @param [Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] attributes
|
16
|
+
# Values must be non-nil and (array of) string, boolean or numeric type.
|
17
|
+
# Array values must not contain nil elements and all elements must be of
|
18
|
+
# the same basic type (string, numeric, boolean).
|
19
|
+
def observe(timeout: nil, attributes: {}); end
|
13
20
|
end
|
14
21
|
end
|
15
22
|
end
|
@@ -16,7 +16,7 @@ module OpenTelemetry
|
|
16
16
|
UP_DOWN_COUNTER = Instrument::UpDownCounter.new
|
17
17
|
OBSERVABLE_UP_DOWN_COUNTER = Instrument::ObservableUpDownCounter.new
|
18
18
|
|
19
|
-
NAME_REGEX =
|
19
|
+
NAME_REGEX = %r{\A[a-zA-Z][-./\w]{0,254}\z}
|
20
20
|
|
21
21
|
private_constant(:COUNTER, :OBSERVABLE_COUNTER, :HISTOGRAM, :GAUGE, :OBSERVABLE_GAUGE, :UP_DOWN_COUNTER, :OBSERVABLE_UP_DOWN_COUNTER)
|
22
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-metrics-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -196,10 +196,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
196
196
|
licenses:
|
197
197
|
- Apache-2.0
|
198
198
|
metadata:
|
199
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-metrics-api/v0.
|
199
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-metrics-api/v0.4.0/file.CHANGELOG.html
|
200
200
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/metrics_api
|
201
201
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
202
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-metrics-api/v0.
|
202
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-metrics-api/v0.4.0
|
203
203
|
post_install_message:
|
204
204
|
rdoc_options: []
|
205
205
|
require_paths:
|
@@ -208,14 +208,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
209
209
|
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
version: '3.
|
211
|
+
version: '3.1'
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
214
|
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
rubygems_version: 3.
|
218
|
+
rubygems_version: 3.3.27
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: A stats collection and distributed tracing framework
|