opentelemetry-exporter-jaeger 0.19.0 → 0.20.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c14c543299dc6f5a2b447c4da407dc2cea523f692609a56b117d132ee31b317e
|
4
|
+
data.tar.gz: 9ac7f926fc3e3fe68b3cd80c1ec38cf8ff53172ac01f70371c050be03a6fc8b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e02d38eb4144366b21dd304a0db1b5c489ed15c079abcb39b0c172d1f82cf1184a1557acb3cfffcc03a178b1fea29b4a708f0bc30a382ec5990151bbb23491a
|
7
|
+
data.tar.gz: 4832c3f5645cf9323a844385b75a11fd390be02bba97ed41f73815c338a045dbc7c25e70c6656d4907a41b465b7a518c7afff2a72a16ce81e5402a2ccd09dfac
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release History: opentelemetry-exporter-jaeger
|
2
2
|
|
3
|
+
### v0.20.2 / 2022-05-02
|
4
|
+
|
5
|
+
* DOCS: Fix exporter port in Jaeger exporter readme
|
6
|
+
|
7
|
+
### v0.20.1 / 2021-09-29
|
8
|
+
|
9
|
+
* (No significant changes)
|
10
|
+
|
11
|
+
### v0.20.0 / 2021-08-12
|
12
|
+
|
13
|
+
* ADDED: OTEL_EXPORTER_JAEGER_TIMEOUT env var
|
14
|
+
* DOCS: Update docs to rely more on environment variable configuration
|
15
|
+
|
3
16
|
### v0.19.0 / 2021-06-23
|
4
17
|
|
5
18
|
* BREAKING CHANGE: Total order constraint on span.status=
|
data/README.md
CHANGED
@@ -31,18 +31,27 @@ Then, configure the SDK to use a Jaeger exporter as a span processor, and use th
|
|
31
31
|
require 'opentelemetry/sdk'
|
32
32
|
require 'opentelemetry/exporter/jaeger'
|
33
33
|
|
34
|
-
# Configure the sdk with
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
34
|
+
# Configure the sdk with the Jaeger collector exporter
|
35
|
+
ENV['OTEL_TRACES_EXPORTER'] = 'jaeger'
|
36
|
+
|
37
|
+
ENV['OTEL_SERVICE_NAME'] = 'jaeger-example'
|
38
|
+
ENV['OTEL_SERVICE_VERSION'] = '0.6.0'
|
39
|
+
|
40
|
+
# The exporter will connect to localhost:6831 by default. To change:
|
41
|
+
# ENV['OTEL_EXPORTER_JAEGER_AGENT_HOST'] = 'some.other.host'
|
42
|
+
# ENV['OTEL_EXPORTER_JAEGER_AGENT_PORT'] = 12345
|
43
|
+
|
44
|
+
# The SDK reads the environment for configuration, so no additional configuration is needed:
|
45
|
+
OpenTelemetry::SDK.configure
|
46
|
+
|
47
|
+
# If you need to use the Jaeger Agent exporter, you will need to configure many things manually:
|
48
|
+
# OpenTelemetry::SDK.configure do |c|
|
49
|
+
# c.add_span_processor(
|
50
|
+
# OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
|
51
|
+
# OpenTelemetry::Exporter::Jaeger::AgentExporter.new(host: '127.0.0.1', port: 6831)
|
52
|
+
# )
|
53
|
+
# )
|
54
|
+
# end
|
46
55
|
|
47
56
|
# To start a trace you need to get a Tracer from the TracerProvider
|
48
57
|
tracer = OpenTelemetry.tracer_provider.tracer('my_app_or_gem', '0.1.0')
|
@@ -77,7 +86,7 @@ The collector exporter can be configured explicitly in code, as shown above, or
|
|
77
86
|
|
78
87
|
| Parameter | Environment variable | Default |
|
79
88
|
| ------------------ | ---------------------------------------------- | -------------------------- |
|
80
|
-
| `endpoint:` | `OTEL_EXPORTER_JAEGER_ENDPOINT` | `"http://localhost:14268"` |
|
89
|
+
| `endpoint:` | `OTEL_EXPORTER_JAEGER_ENDPOINT` | `"http://localhost:14268/api/traces"` |
|
81
90
|
| `username:` | `OTEL_EXPORTER_JAEGER_USER` | `nil` |
|
82
91
|
| `password:` | `OTEL_EXPORTER_JAEGER_PASSWORD` | `nil` |
|
83
92
|
| `ssl_verify_mode:` | `OTEL_RUBY_EXPORTER_JAEGER_SSL_VERIFY_PEER` or | `OpenSSL::SSL:VERIFY_PEER` |
|
@@ -15,6 +15,7 @@ module OpenTelemetry
|
|
15
15
|
|
16
16
|
def initialize(host: ENV.fetch('OTEL_EXPORTER_JAEGER_AGENT_HOST', 'localhost'),
|
17
17
|
port: ENV.fetch('OTEL_EXPORTER_JAEGER_AGENT_PORT', 6831),
|
18
|
+
timeout: ENV.fetch('OTEL_EXPORTER_JAEGER_TIMEOUT', 10),
|
18
19
|
max_packet_size: 65_000)
|
19
20
|
transport = Transport.new(host, port)
|
20
21
|
protocol = ::Thrift::CompactProtocol.new(transport)
|
@@ -23,6 +24,7 @@ module OpenTelemetry
|
|
23
24
|
@shutdown = false
|
24
25
|
@sizing_transport = SizingTransport.new
|
25
26
|
@sizing_protocol = ::Thrift::CompactProtocol.new(@sizing_transport)
|
27
|
+
@timeout = timeout.to_f
|
26
28
|
end
|
27
29
|
|
28
30
|
# Called to export sampled {OpenTelemetry::SDK::Trace::SpanData} structs.
|
@@ -35,6 +37,7 @@ module OpenTelemetry
|
|
35
37
|
def export(span_data, timeout: nil)
|
36
38
|
return FAILURE if @shutdown
|
37
39
|
|
40
|
+
timeout ||= @timeout
|
38
41
|
start_time = OpenTelemetry::Common::Utilities.timeout_timestamp
|
39
42
|
encoded_batches(span_data) do |batch|
|
40
43
|
return FAILURE if @shutdown || OpenTelemetry::Common::Utilities.maybe_timeout(timeout, start_time)&.zero?
|
@@ -28,6 +28,7 @@ module OpenTelemetry
|
|
28
28
|
def initialize(endpoint: ENV.fetch('OTEL_EXPORTER_JAEGER_ENDPOINT', 'http://localhost:14268/api/traces'),
|
29
29
|
username: ENV['OTEL_EXPORTER_JAEGER_USER'],
|
30
30
|
password: ENV['OTEL_EXPORTER_JAEGER_PASSWORD'],
|
31
|
+
timeout: ENV.fetch('OTEL_EXPORTER_JAEGER_TIMEOUT', 10),
|
31
32
|
ssl_verify_mode: CollectorExporter.ssl_verify_mode)
|
32
33
|
raise ArgumentError, "invalid url for Jaeger::CollectorExporter #{endpoint}" if invalid_url?(endpoint)
|
33
34
|
raise ArgumentError, 'username and password should either both be nil or both be set' if username.nil? != password.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-exporter-jaeger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: opentelemetry-common
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.19.
|
33
|
+
version: 0.19.3
|
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.19.
|
40
|
+
version: 0.19.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: opentelemetry-sdk
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0
|
47
|
+
version: '1.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: 1.0
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: thrift
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '5.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: opentelemetry-test-helpers
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rake
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -223,10 +237,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
223
237
|
licenses:
|
224
238
|
- Apache-2.0
|
225
239
|
metadata:
|
226
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.
|
240
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.20.2/file.CHANGELOG.html
|
227
241
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/jaeger
|
228
242
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
229
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.
|
243
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.20.2
|
230
244
|
post_install_message:
|
231
245
|
rdoc_options: []
|
232
246
|
require_paths:
|