opentelemetry-exporter-otlp 0.26.3 → 0.27.0

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: 7bc7e8bbf3754ac0b3e7666565be7a3b18c5a0efe17324785a50585d091bbf4a
4
- data.tar.gz: d69c6affa0eaa01c894f86bf943e71053ea0c18b127e4492b219c397ca1376e5
3
+ metadata.gz: 61f45bb4d312e9792b5c3ea6dfc9813856f9ee967e7d37d8dbcf13844da60c54
4
+ data.tar.gz: dfb5d62f39431f0b051e5091a5cb6c52aa6e650e88670d7cdac9755fee7a8b88
5
5
  SHA512:
6
- metadata.gz: f882b1c1e1ae24c283ce2e83c97f80b055a1ae95d0d35b27f7dc3bd271053b712232b0b939d44b4cd35fd9cd2edbaff50ac54a2e698f834773d7e3c5e448519a
7
- data.tar.gz: 65c48f81bf8a89d24ded2d1078d819894f26cbabf6ce0df6a48d8f64fc62a1e8246aad91495733838f1c6e38339eddb6d1651fc39520f7832db000eb5d99c1a5
6
+ metadata.gz: d9070d0d690aee9f57c380aad0e2e11c6ca18416a1d0ef1779be0919eb46d91a6f69f28a770766a97ba1d3cf6f197d43a06f094223e7e4135f473b934d50d1d5
7
+ data.tar.gz: 65768645c684f724f12ada620d9ac85ba22e21b1962e771254b8c0fa98d2e3a8d23690dc190a41c6b3cd8ab91166dce2cebed908cc9808fc120cdda4d666bd6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-exporter-otlp
2
2
 
3
+ ### v0.27.0 / 2024-04-19
4
+
5
+ * ADDED: Add stats for serialization time in otlp exporter
6
+
3
7
  ### v0.26.3 / 2024-02-01
4
8
 
5
9
  * FIXED: do not log request failure in backoff?
@@ -244,7 +244,7 @@ module OpenTelemetry
244
244
  end
245
245
  end
246
246
 
247
- def backoff?(retry_count:, reason:, retry_after: nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
247
+ def backoff?(retry_count:, reason:, retry_after: nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
248
248
  @metrics_reporter.add_to_counter('otel.otlp_exporter.failure', labels: { 'reason' => reason })
249
249
  return false if retry_count > RETRY_COUNT
250
250
 
@@ -271,6 +271,7 @@ module OpenTelemetry
271
271
  end
272
272
 
273
273
  def encode(span_data) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
274
+ start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
274
275
  Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceRequest.encode(
275
276
  Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceRequest.new(
276
277
  resource_spans: span_data
@@ -298,6 +299,11 @@ module OpenTelemetry
298
299
  rescue StandardError => e
299
300
  OpenTelemetry.handle_error(exception: e, message: 'unexpected error in OTLP::Exporter#encode')
300
301
  nil
302
+ ensure
303
+ stop = Process.clock_gettime(Process::CLOCK_MONOTONIC)
304
+ duration_ms = 1000.0 * (stop - start)
305
+ @metrics_reporter.record_value('otel.otlp_exporter.encode_duration',
306
+ value: duration_ms)
301
307
  end
302
308
 
303
309
  def as_otlp_span(span_data) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Exporter
9
9
  module OTLP
10
10
  ## Current OpenTelemetry OTLP exporter version
11
- VERSION = '0.26.3'
11
+ VERSION = '0.27.0'
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-exporter-otlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.3
4
+ version: 0.27.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: 2024-02-01 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: googleapis-common-protos-types
@@ -289,10 +289,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
289
289
  licenses:
290
290
  - Apache-2.0
291
291
  metadata:
292
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.3/file.CHANGELOG.html
292
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.27.0/file.CHANGELOG.html
293
293
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp
294
294
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
295
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.3
295
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.27.0
296
296
  post_install_message:
297
297
  rdoc_options: []
298
298
  require_paths: