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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/opentelemetry/exporter/otlp/exporter.rb +6 -23
- data/lib/opentelemetry/exporter/otlp/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fb745d3f75cb361d8921375fac3d93c4ba439b04f6e1b88a16a3e1d37c0718b
|
4
|
+
data.tar.gz: c03ac82d66dba1f2d18c15c33e58067fc634d17dac61a390e92f965f1a3aed8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a215680796d45dacf04484864b07f1552f1cae9f1b4c9e73ffc5392bfb8e370a3bca9abea9155cd53b14bb9ad9d923ce9b8659fdec21dbbdceb4bef05832258
|
7
|
+
data.tar.gz: 5261a436acd2d12465c3b18100e0b6202f66bdfd633ba19f7c244a1dc38a67deca69a4c6a6110f473f286e39ed4392b908f9414dd4c84217abf9582a08392ec2
|
data/CHANGELOG.md
CHANGED
@@ -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}"
|
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.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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:
|