opentelemetry-exporter-otlp 0.26.2 → 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: f511b15fd3e7e4d1452f58f852d9e29c97bff2743b520c080b187c657801b1bc
4
- data.tar.gz: 52b9151d21904c685e026a813323415ef6b2be589e208b3a2307ad22fe5bead0
3
+ metadata.gz: 61f45bb4d312e9792b5c3ea6dfc9813856f9ee967e7d37d8dbcf13844da60c54
4
+ data.tar.gz: dfb5d62f39431f0b051e5091a5cb6c52aa6e650e88670d7cdac9755fee7a8b88
5
5
  SHA512:
6
- metadata.gz: 5d7c6101418e338123fa98b097028e819a94297a45d5c693ddea11226f9e984026f5951ad74076453636fcb6aee478b57721287d5c6807f8caa112a66f2786ed
7
- data.tar.gz: 17a6022b2146e6b94cbae099cf47b3e86bb825c1a49a6e77548febdef93ddded862fa1685a9601c22235cb2996493a1f68db49e8b1399684482ab2bb3cd06cfd
6
+ metadata.gz: d9070d0d690aee9f57c380aad0e2e11c6ca18416a1d0ef1779be0919eb46d91a6f69f28a770766a97ba1d3cf6f197d43a06f094223e7e4135f473b934d50d1d5
7
+ data.tar.gz: 65768645c684f724f12ada620d9ac85ba22e21b1962e771254b8c0fa98d2e3a8d23690dc190a41c6b3cd8ab91166dce2cebed908cc9808fc120cdda4d666bd6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.26.3 / 2024-02-01
8
+
9
+ * FIXED: do not log request failure in backoff?
10
+
3
11
  ### v0.26.2 / 2024-01-23
4
12
 
5
13
  * FIXED: Align endpoint environment variable handling with spec
@@ -244,8 +244,8 @@ 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
248
- log_request_failure(reason)
247
+ def backoff?(retry_count:, reason:, retry_after: nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
248
+ @metrics_reporter.add_to_counter('otel.otlp_exporter.failure', labels: { 'reason' => reason })
249
249
  return false if retry_count > RETRY_COUNT
250
250
 
251
251
  sleep_interval = nil
@@ -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.2'
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.2
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-01-23 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.2/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.2
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: