opentelemetry-exporter-zipkin 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea656c78b89a87c8ec0d07e042ae32fb7cda24f6e77c8f12081091d24b6f20aa
|
4
|
+
data.tar.gz: 5e5902b4998901fc26c6f13df45783d0ff0c4c7e7c71e99c32118335d5da67d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e590ba05fccc7eb25729776b4a506f5268c70bef8b1f3846baab7e604fba897acfcc2f440f7c773839751f91ce502da5618e94c253f75caa208587ccfc50736d
|
7
|
+
data.tar.gz: d5dd06ab0d80ae164c6c02aff57ad1d5e42b441d3bd7bd15a42dfb500bb067ce4d28a1093e21714e1a081dddc280be99ea2803ef9b1b04f8d11ce4d3577aea23
|
data/CHANGELOG.md
CHANGED
@@ -132,7 +132,7 @@ module OpenTelemetry
|
|
132
132
|
def send_spans(zipkin_spans, timeout: nil) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength
|
133
133
|
retry_count = 0
|
134
134
|
timeout ||= @timeout
|
135
|
-
start_time =
|
135
|
+
start_time = OpenTelemetry::Common::Utilities.timeout_timestamp
|
136
136
|
around_request do # rubocop:disable Metrics/BlockLength
|
137
137
|
request = Net::HTTP::Post.new(@path)
|
138
138
|
request.body = JSON.generate(zipkin_spans)
|
@@ -38,8 +38,8 @@ module OpenTelemetry
|
|
38
38
|
private_constant(:KIND_MAP, :DEFAULT_SERVICE_NAME, :SERVICE_NAME_ATTRIBUTE_KEY, :ERROR_TAG_KEY, :STATUS_CODE_NAME, :STATUS_ERROR, :STATUS_OK, :ATTRIBUTE_PEER_SERVICE, :ATTRIBUTE_NET_PEER_IP, :ATTRIBUTE_NET_PEER_PORT, :ATTRIBUTE_NET_HOST_IP, :ATTRIBUTE_NET_HOST_PORT)
|
39
39
|
|
40
40
|
def to_zipkin_span(span_d, resource)
|
41
|
-
start_time =
|
42
|
-
duration =
|
41
|
+
start_time = span_d.start_timestamp / 1_000
|
42
|
+
duration = span_d.end_timestamp / 1_000 - start_time
|
43
43
|
tags = {}
|
44
44
|
service_name = DEFAULT_SERVICE_NAME
|
45
45
|
resource.attribute_enumerator.select do |key, value|
|
@@ -91,7 +91,7 @@ module OpenTelemetry
|
|
91
91
|
def add_conditional_tags(zipkin_span, span_data, tags, service_name)
|
92
92
|
zipkin_span['tags'] = tags unless tags.empty?
|
93
93
|
zipkin_span['kind'] = KIND_MAP[span_data.kind] unless span_data.kind.nil?
|
94
|
-
zipkin_span['parentId'] = span_data.
|
94
|
+
zipkin_span['parentId'] = span_data.hex_parent_span_id unless span_data.parent_span_id == OpenTelemetry::Trace::INVALID_SPAN_ID
|
95
95
|
zipkin_span['localEndpoint'] = endpoint_from_tags(tags, (span_data.attributes && span_data.attributes[SERVICE_NAME_ATTRIBUTE_KEY]) || service_name)
|
96
96
|
# remote endpoint logic https://github.com/open-telemetry/opentelemetry-collector/blob/347cfa9ab21d47240128c58c9bafcc0014bc729d/translator/trace/zipkin/traces_to_zipkinv2.go#L284
|
97
97
|
zipkin_span['remoteEndpoint'] = endpoint_from_tags(tags, nil)
|
@@ -107,12 +107,12 @@ module OpenTelemetry
|
|
107
107
|
events = span_data.events.map do |event|
|
108
108
|
if event.attributes.keys.length.zero?
|
109
109
|
{
|
110
|
-
timestamp: (event.timestamp
|
110
|
+
timestamp: (event.timestamp / 1_000).to_s,
|
111
111
|
value: event.name
|
112
112
|
}
|
113
113
|
else
|
114
114
|
{
|
115
|
-
timestamp: (event.timestamp
|
115
|
+
timestamp: (event.timestamp / 1_000).to_s,
|
116
116
|
value: { event.name => event.attributes.transform_values(&:to_s) }.to_json
|
117
117
|
}
|
118
118
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-exporter-zipkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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-
|
11
|
+
date: 2021-05-21 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: 0.
|
19
|
+
version: 1.0.0.rc1
|
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: 1.0.0.rc1
|
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.18.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.18.0
|
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: 0.
|
47
|
+
version: 1.0.0.rc1
|
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.
|
54
|
+
version: 1.0.0.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,10 +198,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
198
198
|
licenses:
|
199
199
|
- Apache-2.0
|
200
200
|
metadata:
|
201
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-zipkin/v0.
|
201
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-zipkin/v0.18.0/file.CHANGELOG.html
|
202
202
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/zipkin
|
203
203
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
204
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-zipkin/v0.
|
204
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-zipkin/v0.18.0
|
205
205
|
post_install_message:
|
206
206
|
rdoc_options: []
|
207
207
|
require_paths:
|