opentelemetry-exporter-otlp 0.21.3 → 0.22.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: b213406e2d3c47187dfab98be6509f7622c45c18bea72bf256afc0b15ac96456
4
- data.tar.gz: bda1a504619c2bb64f079fb136b7ddf40ea192476760ca9cbcd96df057779e88
3
+ metadata.gz: 5fb745d3f75cb361d8921375fac3d93c4ba439b04f6e1b88a16a3e1d37c0718b
4
+ data.tar.gz: c03ac82d66dba1f2d18c15c33e58067fc634d17dac61a390e92f965f1a3aed8c
5
5
  SHA512:
6
- metadata.gz: e30faf8e6a0c5b122fa28882482d9c03286e601bb65653937133e15c23802a495fc572f8470a1f2b1e42a45839031e31e20053a1a3e87d6d311c2243b64f604a
7
- data.tar.gz: ad5469012f495a86f0e8ae40016cd12e06f51be4d126e09b9f7b201cbd11011003886ba12b424802cfa7c9c6d0b5756b03bf4c0a8ce51f895836d7c58965fba5
6
+ metadata.gz: 1a215680796d45dacf04484864b07f1552f1cae9f1b4c9e73ffc5392bfb8e370a3bca9abea9155cd53b14bb9ad9d923ce9b8659fdec21dbbdceb4bef05832258
7
+ data.tar.gz: 5261a436acd2d12465c3b18100e0b6202f66bdfd633ba19f7c244a1dc38a67deca69a4c6a6110f473f286e39ed4392b908f9414dd4c84217abf9582a08392ec2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-exporter-otlp
2
2
 
3
+ ### v0.22.0 / 2022-06-09
4
+
5
+ * ADDED: Otlp grpc
6
+
3
7
  ### v0.21.3 / 2022-05-12
4
8
 
5
9
  * (No significant changes)
@@ -45,14 +45,14 @@ module OpenTelemetry
45
45
  end
46
46
  end
47
47
 
48
- def initialize(endpoint: config_opt('OTEL_EXPORTER_OTLP_TRACES_ENDPOINT', 'OTEL_EXPORTER_OTLP_ENDPOINT', default: 'http://localhost:4318/v1/traces'), # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
49
- certificate_file: config_opt('OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE', 'OTEL_EXPORTER_OTLP_CERTIFICATE'),
48
+ def initialize(endpoint: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_ENDPOINT', 'OTEL_EXPORTER_OTLP_ENDPOINT', default: 'http://localhost:4318/v1/traces'), # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
49
+ certificate_file: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE', 'OTEL_EXPORTER_OTLP_CERTIFICATE'),
50
50
  ssl_verify_mode: Exporter.ssl_verify_mode,
51
- headers: config_opt('OTEL_EXPORTER_OTLP_TRACES_HEADERS', 'OTEL_EXPORTER_OTLP_HEADERS', default: {}),
52
- compression: config_opt('OTEL_EXPORTER_OTLP_TRACES_COMPRESSION', 'OTEL_EXPORTER_OTLP_COMPRESSION', default: 'gzip'),
53
- timeout: config_opt('OTEL_EXPORTER_OTLP_TRACES_TIMEOUT', 'OTEL_EXPORTER_OTLP_TIMEOUT', default: 10),
51
+ headers: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_HEADERS', 'OTEL_EXPORTER_OTLP_HEADERS', default: {}),
52
+ compression: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_COMPRESSION', 'OTEL_EXPORTER_OTLP_COMPRESSION', default: 'gzip'),
53
+ timeout: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_TIMEOUT', 'OTEL_EXPORTER_OTLP_TIMEOUT', default: 10),
54
54
  metrics_reporter: nil)
55
- raise ArgumentError, "invalid url for OTLP::Exporter #{endpoint}" if invalid_url?(endpoint)
55
+ raise ArgumentError, "invalid url for OTLP::Exporter #{endpoint}" unless OpenTelemetry::Common::Utilities.valid_url?(endpoint)
56
56
  raise ArgumentError, "unsupported compression key #{compression}" unless compression.nil? || %w[gzip none].include?(compression)
57
57
 
58
58
  @uri = if endpoint == ENV['OTEL_EXPORTER_OTLP_ENDPOINT']
@@ -120,23 +120,6 @@ module OpenTelemetry
120
120
  http
121
121
  end
122
122
 
123
- def config_opt(*env_vars, default: nil)
124
- env_vars.each do |env_var|
125
- val = ENV[env_var]
126
- return val unless val.nil?
127
- end
128
- default
129
- end
130
-
131
- def invalid_url?(url)
132
- return true if url.nil? || url.strip.empty?
133
-
134
- URI(url)
135
- false
136
- rescue URI::InvalidURIError
137
- true
138
- end
139
-
140
123
  # The around_request is a private method that provides an extension
141
124
  # point for the exporters network calls. The default behaviour
142
125
  # is to not trace these operations.
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Exporter
9
9
  module OTLP
10
10
  ## Current OpenTelemetry OTLP exporter version
11
- VERSION = '0.21.3'
11
+ VERSION = '0.22.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.21.3
4
+ version: 0.22.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: 2022-05-12 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.19.3
61
+ version: 0.19.6
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.19.3
68
+ version: 0.19.6
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: opentelemetry-sdk
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -280,10 +280,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
280
280
  licenses:
281
281
  - Apache-2.0
282
282
  metadata:
283
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.21.3/file.CHANGELOG.html
283
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.22.0/file.CHANGELOG.html
284
284
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp
285
285
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
286
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.21.3
286
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.22.0
287
287
  post_install_message:
288
288
  rdoc_options: []
289
289
  require_paths: