opentelemetry-exporter-otlp 0.17.0 → 0.18.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: 2f5b4d0796501a589f5835d0c45dde197615d480b215ba155def93e1bff5d262
4
- data.tar.gz: c9059c510ffb3931d4d004b2eb74c6433c4fe353f2a10bfae0e51a6a9e10111f
3
+ metadata.gz: b48dea168895acc1c5cb835efd2b3691265c616b8ca19ccfcbc9f2a3b88048fd
4
+ data.tar.gz: 2ba8c745c8572195935ad47a48583e6f0dc669c3d441d5fa2d263a151de0036d
5
5
  SHA512:
6
- metadata.gz: 6f2118ca07a28c077f245310d32277aacda537a8b71be2a20d2f5a8763bc03be1ed2ad7ed13e0e99fe21738ac13f395ad2dcefd7b240b34c32f090576dfc4887
7
- data.tar.gz: 6429cf61555ab6052a8cc667925933c40a552225209e829a4270cdec114ff94a0223c5f7459e32ae2447a8689f9817c221a0bf98f32d19ef99e7e04fc45769b5
6
+ metadata.gz: 47053b86edcc9a28e05064ffff4794fd61748c36b184b6afd2f7437ae9ecae2b5bbbe04fcbaaa9834b1f7105a56ee38be5577df232c4c26c6da5d802c48b1763
7
+ data.tar.gz: 8341c6ef8db9541612d1ccac7c95cc9f1725224a716a86af045851843ca066ca47591f155460a5d2873236856979125be8faa7cc5b11789a7f692f683ad27da9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Release History: opentelemetry-exporter-otlp
2
2
 
3
+ ### v0.18.0 / 2021-05-21
4
+
5
+ * BREAKING CHANGE: Replace Time.now with Process.clock_gettime
6
+
7
+ * FIXED: Replace Time.now with Process.clock_gettime
8
+ * FIXED: Rescue missed otlp exporter network errors
9
+
3
10
  ### v0.17.0 / 2021-04-22
4
11
 
5
12
  * ADDED: Add zipkin exporter
@@ -139,7 +139,7 @@ module OpenTelemetry
139
139
  def send_bytes(bytes, timeout:) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
140
140
  retry_count = 0
141
141
  timeout ||= @timeout
142
- start_time = Time.now
142
+ start_time = OpenTelemetry::Common::Utilities.timeout_timestamp
143
143
  around_request do # rubocop:disable Metrics/BlockLength
144
144
  request = Net::HTTP::Post.new(@path)
145
145
  request.body = if @compression == 'gzip'
@@ -190,6 +190,12 @@ module OpenTelemetry
190
190
  rescue SocketError
191
191
  retry if backoff?(retry_count: retry_count += 1, reason: 'socket_error')
192
192
  return FAILURE
193
+ rescue SystemCallError => e
194
+ retry if backoff?(retry_count: retry_count += 1, reason: e.class.name)
195
+ return FAILURE
196
+ rescue EOFError
197
+ retry if backoff?(retry_count: retry_count += 1, reason: 'eof_error')
198
+ return FAILURE
193
199
  end
194
200
  ensure
195
201
  # Reset timeouts to defaults for the next call.
@@ -277,13 +283,13 @@ module OpenTelemetry
277
283
  parent_span_id: span_data.parent_span_id == OpenTelemetry::Trace::INVALID_SPAN_ID ? nil : span_data.parent_span_id,
278
284
  name: span_data.name,
279
285
  kind: as_otlp_span_kind(span_data.kind),
280
- start_time_unix_nano: as_otlp_timestamp(span_data.start_timestamp),
281
- end_time_unix_nano: as_otlp_timestamp(span_data.end_timestamp),
286
+ start_time_unix_nano: span_data.start_timestamp,
287
+ end_time_unix_nano: span_data.end_timestamp,
282
288
  attributes: span_data.attributes&.map { |k, v| as_otlp_key_value(k, v) },
283
289
  dropped_attributes_count: span_data.total_recorded_attributes - span_data.attributes&.size.to_i,
284
290
  events: span_data.events&.map do |event|
285
291
  Opentelemetry::Proto::Trace::V1::Span::Event.new(
286
- time_unix_nano: as_otlp_timestamp(event.timestamp),
292
+ time_unix_nano: event.timestamp,
287
293
  name: event.name,
288
294
  attributes: event.attributes&.map { |k, v| as_otlp_key_value(k, v) }
289
295
  # TODO: track dropped_attributes_count in Span#append_event
@@ -310,10 +316,6 @@ module OpenTelemetry
310
316
  )
311
317
  end
312
318
 
313
- def as_otlp_timestamp(timestamp)
314
- (timestamp.to_r * 1_000_000_000).to_i
315
- end
316
-
317
319
  def as_otlp_span_kind(kind)
318
320
  case kind
319
321
  when :internal then Opentelemetry::Proto::Trace::V1::Span::SpanKind::INTERNAL
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Exporter
9
9
  module OTLP
10
10
  ## Current OpenTelemetry OTLP exporter version
11
- VERSION = '0.17.0'
11
+ VERSION = '0.18.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.17.0
4
+ version: 0.18.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: 2021-04-23 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.17.0
33
+ version: 1.0.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.17.0
40
+ version: 1.0.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-common
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.17.0
47
+ version: 0.18.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.17.0
54
+ version: 0.18.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: opentelemetry-sdk
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.17.0
61
+ version: 1.0.0.rc1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.17.0
68
+ version: 1.0.0.rc1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -215,10 +215,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
215
215
  licenses:
216
216
  - Apache-2.0
217
217
  metadata:
218
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.17.0/file.CHANGELOG.html
218
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.18.0/file.CHANGELOG.html
219
219
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp
220
220
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
221
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.17.0
221
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.18.0
222
222
  post_install_message:
223
223
  rdoc_options: []
224
224
  require_paths: