uptrace 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/RELEASE.md +5 -0
- data/lib/uptrace/client.rb +1 -1
- data/lib/uptrace/trace/exporter.rb +11 -19
- data/lib/uptrace/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e98c516863a2d2d3cf5befff7333a5347b9624ac4b4287177dffa93327fca89
|
4
|
+
data.tar.gz: b1081b536729d1de1a50717b21053816faa4801d7f886db81c23f8a2ca98c2a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb40d3d6563d1eec0f822a758ac4cbbccbb73dbcbe13e0ddfc992e9b9a39ed8746035fec3e85ab6610278584c3db873a37d9cd87ffbfbb0dd9152f7126c1da4
|
7
|
+
data.tar.gz: 6eef8ebe76bc77bae7efe13a78a43329ceeb8ae3e1aa44d5e444ebc7d09290f17fa9d31c0b9a6fe12599dda1f33230bea23e718b0ae919ebf955d5e0ff9aaac0
|
data/RELEASE.md
ADDED
data/lib/uptrace/client.rb
CHANGED
@@ -37,7 +37,7 @@ module Uptrace
|
|
37
37
|
dsn = @cfg.dsno
|
38
38
|
host = dsn.host.delete_prefix('api.')
|
39
39
|
trace_id = span.context.hex_trace_id
|
40
|
-
"#{dsn.scheme}://#{host}/#{dsn.project_id}
|
40
|
+
"#{dsn.scheme}://#{host}/search/#{dsn.project_id}?q=#{trace_id}"
|
41
41
|
end
|
42
42
|
|
43
43
|
private
|
@@ -79,18 +79,21 @@ module Uptrace
|
|
79
79
|
endTime: as_unix_nano(span.end_timestamp),
|
80
80
|
|
81
81
|
resource: uptrace_resource(span.resource),
|
82
|
-
attrs: span.attributes
|
82
|
+
attrs: span.attributes
|
83
|
+
}
|
83
84
|
|
84
|
-
|
85
|
-
statusMessage: span.status.description,
|
85
|
+
out[parentId] = span.parent_span_id.unpack1('Q') if span.parent_span_id
|
86
86
|
|
87
|
-
|
88
|
-
|
87
|
+
out[events] = uptrace_events(span.events) unless span.events.nil?
|
88
|
+
out[links] = uptrace_links(span.links) unless span.links.nil?
|
89
89
|
|
90
|
-
|
90
|
+
status = span.status
|
91
|
+
out[statusCode] = status_code_as_str(status.code)
|
92
|
+
out[statusMessage] = status.description unless status.description.empty?
|
91
93
|
|
92
|
-
|
93
|
-
out[
|
94
|
+
il = span.instrumentation_library
|
95
|
+
out[tracerName] = il.name
|
96
|
+
out[tracerVersion] = il.name unless il.version.empty?
|
94
97
|
|
95
98
|
out
|
96
99
|
end
|
@@ -216,17 +219,6 @@ module Uptrace
|
|
216
219
|
end
|
217
220
|
out
|
218
221
|
end
|
219
|
-
|
220
|
-
##
|
221
|
-
# @param [OpenTelemetry::SDK::InstrumentationLibrary] il
|
222
|
-
# @return [Hash]
|
223
|
-
#
|
224
|
-
def uptrace_tracer(il)
|
225
|
-
{
|
226
|
-
name: il.name,
|
227
|
-
version: il.version
|
228
|
-
}
|
229
|
-
end
|
230
222
|
end
|
231
223
|
end
|
232
224
|
end
|
data/lib/uptrace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uptrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uptrace Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- ".yardopts"
|
175
175
|
- LICENSE
|
176
176
|
- README.md
|
177
|
+
- RELEASE.md
|
177
178
|
- lib/uptrace.rb
|
178
179
|
- lib/uptrace/client.rb
|
179
180
|
- lib/uptrace/dsn.rb
|