opentelemetry-exporter-otlp-metrics 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb4e38af9863bebfb371938af848fe59a23ba93fdd43ab1481e0564683a777b1
|
4
|
+
data.tar.gz: f395bd341c56a3dcf1c98ece2b062ce53f91d69e3cf49fc68ae7fccc5e19ec1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc477ced1291504d8c497dea4168a77b8aff5c440cfa204425a4da2f99563a6d4d17e6438d3f08b538e383f826225733b98d1c4f57ba4dd2678827d2b514052e
|
7
|
+
data.tar.gz: a08feee08447528c752dacf8eb9853737a63fa6baa4e744a13851c254bd5c989d7c23ed48273a99c07dccad515859eb982b304544018a4eaed8c00db70820d5e
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Release History: opentelemetry-exporter-otlp-metrics
|
2
2
|
|
3
|
-
### v0.2.
|
3
|
+
### v0.2.1 / 2024-12-04
|
4
|
+
|
5
|
+
* FIXED: Handle float value in NumberDataPoint
|
6
|
+
|
7
|
+
### v0.2.0 / 2024-11-20
|
4
8
|
|
5
9
|
* ADDED: Add basic metrics view
|
6
10
|
* FIXED: Remove Metrics OTLP exporter `Util#measure_request_duration` and duplicate files
|
@@ -284,13 +284,20 @@ module OpenTelemetry
|
|
284
284
|
end
|
285
285
|
|
286
286
|
def number_data_point(ndp)
|
287
|
-
|
287
|
+
args = {
|
288
288
|
attributes: ndp.attributes.map { |k, v| as_otlp_key_value(k, v) },
|
289
|
-
as_int: ndp.value,
|
290
289
|
start_time_unix_nano: ndp.start_time_unix_nano,
|
291
290
|
time_unix_nano: ndp.time_unix_nano,
|
292
291
|
exemplars: ndp.exemplars # exemplars not implemented yet from metrics sdk
|
293
|
-
|
292
|
+
}
|
293
|
+
|
294
|
+
if ndp.value.is_a?(Float)
|
295
|
+
args[:as_double] = ndp.value
|
296
|
+
else
|
297
|
+
args[:as_int] = ndp.value
|
298
|
+
end
|
299
|
+
|
300
|
+
Opentelemetry::Proto::Metrics::V1::NumberDataPoint.new(**args)
|
294
301
|
end
|
295
302
|
|
296
303
|
# may not need this
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-exporter-otlp-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleapis-common-protos-types
|
@@ -324,10 +324,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
324
324
|
licenses:
|
325
325
|
- Apache-2.0
|
326
326
|
metadata:
|
327
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp-metrics/v0.2.
|
327
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp-metrics/v0.2.1/file.CHANGELOG.html
|
328
328
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp-metrics
|
329
329
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
330
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp-metrics/v0.2.
|
330
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp-metrics/v0.2.1
|
331
331
|
post_install_message:
|
332
332
|
rdoc_options: []
|
333
333
|
require_paths:
|