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: 4900aee75f04656632debac8b989868fb24fc1097ab8dd30d50216143496cbba
4
- data.tar.gz: bc29bb3e4bb368ee6eb3b8aed510d5af2361da1103e7c2d524ddbe2a24e4c601
3
+ metadata.gz: eb4e38af9863bebfb371938af848fe59a23ba93fdd43ab1481e0564683a777b1
4
+ data.tar.gz: f395bd341c56a3dcf1c98ece2b062ce53f91d69e3cf49fc68ae7fccc5e19ec1e
5
5
  SHA512:
6
- metadata.gz: b7d1227d845b3cc78f8528e712e99cbeb5ca42a610df51bd9a8de00f4e25dc4d5b4289dffd1edfe8da956c34ac46bf152f65999acdffa03343b2f95ef7c6c69e
7
- data.tar.gz: 1de7c79780328fd7fd48ba000f60e9dd8a2e0eca7ba02fe73bc1fc7b6a56ffff82aa08fa8ad5b2dfd498d86d41a89c55b299c572463827b7528614e7cbd24f41
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.0 / 2024-11-19
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
- Opentelemetry::Proto::Metrics::V1::NumberDataPoint.new(
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
@@ -9,7 +9,7 @@ module OpenTelemetry
9
9
  module OTLP
10
10
  module Metrics
11
11
  ## Current OpenTelemetry OTLP exporter version
12
- VERSION = '0.2.0'
12
+ VERSION = '0.2.1'
13
13
  end
14
14
  end
15
15
  end
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.0
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-20 00:00:00.000000000 Z
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.0/file.CHANGELOG.html
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.0
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: