opentelemetry-exporter-jaeger 0.12.0 → 0.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d0e654477f44b2ea26f79309a2e97a27c263944cc6b2f0197a9970a761d6bcc
|
4
|
+
data.tar.gz: 445b71745ce42e3ef5663abca54cd054b36886f77f40057bb959ce237c7c84ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75284455a0a3a2a9f639524fce113c3d293d19e013430d9b352b4618e2c15a1df74b9da618b62ed6968e04f8f16caad1cadd9f55faaa5922d7eff142f6d442a0
|
7
|
+
data.tar.gz: edee99a7928706c94d48c7498ad431b6d462add2b971f7a3bdee9f16f1350c6d8b92d67c2a4c468aaa5f97ff352da102576c9fb3e78a4a858ad4b5d4a45e4859
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Release History: opentelemetry-exporter-jaeger
|
2
2
|
|
3
|
+
### v0.13.0 / 2021-01-29
|
4
|
+
|
5
|
+
* ADDED: Provide default resource in SDK
|
6
|
+
* ADDED: Add untraced wrapper to common utils
|
7
|
+
* FIXED: Jaeger ref type should be FOLLOWS_FROM
|
8
|
+
|
3
9
|
### v0.12.0 / 2020-12-24
|
4
10
|
|
5
11
|
* ADDED: Structured error handling
|
data/README.md
CHANGED
@@ -96,8 +96,8 @@ The `opentelemetry-exporter-jaeger` gem is distributed under the Apache 2.0 lice
|
|
96
96
|
[opentelemetry-home]: https://opentelemetry.io
|
97
97
|
[bundler-home]: https://bundler.io
|
98
98
|
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
|
99
|
-
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/
|
100
|
-
[examples-github]: https://github.com/open-telemetry/opentelemetry-ruby/tree/
|
99
|
+
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
|
100
|
+
[examples-github]: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/examples
|
101
101
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
102
102
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
103
103
|
[ruby-gitter]: https://gitter.im/open-telemetry/opentelemetry-ruby
|
@@ -45,7 +45,7 @@ module OpenTelemetry
|
|
45
45
|
@transport.write(@serializer.serialize(batch))
|
46
46
|
end
|
47
47
|
|
48
|
-
untraced do
|
48
|
+
OpenTelemetry::Common::Utilities.untraced do
|
49
49
|
@transport.flush
|
50
50
|
end
|
51
51
|
SUCCESS
|
@@ -74,10 +74,6 @@ module OpenTelemetry
|
|
74
74
|
true
|
75
75
|
end
|
76
76
|
|
77
|
-
def untraced
|
78
|
-
OpenTelemetry::Trace.with_span(OpenTelemetry::Trace::Span.new) { yield }
|
79
|
-
end
|
80
|
-
|
81
77
|
def encoded_batches(span_data)
|
82
78
|
span_data.group_by(&:resource).map do |resource, spans|
|
83
79
|
process = Encoder.encoded_process(resource)
|
@@ -30,10 +30,11 @@ module OpenTelemetry
|
|
30
30
|
OpenTelemetry::Trace::SpanKind::PRODUCER => 'producer',
|
31
31
|
OpenTelemetry::Trace::SpanKind::CONSUMER => 'consumer'
|
32
32
|
}.freeze
|
33
|
-
|
33
|
+
DEFAULT_SERVICE_NAME = OpenTelemetry::SDK::Resources::Resource.default.attribute_enumerator.find { |k, _| k == 'service.name' }&.last || 'unknown_service'
|
34
|
+
private_constant(:EMPTY_ARRAY, :LONG, :DOUBLE, :STRING, :BOOL, :KEY, :TYPE, :TYPE_MAP, :KIND_MAP, :DEFAULT_SERVICE_NAME)
|
34
35
|
|
35
36
|
def encoded_process(resource)
|
36
|
-
service_name =
|
37
|
+
service_name = DEFAULT_SERVICE_NAME
|
37
38
|
tags = resource&.attribute_enumerator&.select do |key, value|
|
38
39
|
service_name = value if key == 'service.name'
|
39
40
|
key != 'service.name'
|
@@ -110,7 +111,7 @@ module OpenTelemetry
|
|
110
111
|
def encoded_references(links)
|
111
112
|
links&.map do |link|
|
112
113
|
Thrift::SpanRef.new(
|
113
|
-
'refType' => Thrift::SpanRefType::
|
114
|
+
'refType' => Thrift::SpanRefType::FOLLOWS_FROM,
|
114
115
|
'traceIdLow' => int64(link.span_context.trace_id[16, 16]),
|
115
116
|
'traceIdHigh' => int64(link.span_context.trace_id[0, 16]),
|
116
117
|
'spanId' => int64(link.span_context.span_id)
|
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.13.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:
|
11
|
+
date: 2021-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.13.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: 0.
|
26
|
+
version: 0.13.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.
|
33
|
+
version: 0.13.0
|
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.
|
40
|
+
version: 0.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thrift
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -209,10 +209,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
209
209
|
licenses:
|
210
210
|
- Apache-2.0
|
211
211
|
metadata:
|
212
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.
|
213
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/
|
212
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.13.0/file.CHANGELOG.html
|
213
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/jaeger
|
214
214
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
215
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.
|
215
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-jaeger/v0.13.0
|
216
216
|
post_install_message:
|
217
217
|
rdoc_options: []
|
218
218
|
require_paths:
|