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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28b464eb59ab1b56f877a0644fc10b90fb34854116a66967fa6086a2060d451f
4
- data.tar.gz: 684424b1312d32a383914c5f2e3c1e77d1977eaab7599de19049e3ed31501920
3
+ metadata.gz: 2e98c516863a2d2d3cf5befff7333a5347b9624ac4b4287177dffa93327fca89
4
+ data.tar.gz: b1081b536729d1de1a50717b21053816faa4801d7f886db81c23f8a2ca98c2a5
5
5
  SHA512:
6
- metadata.gz: 9df797cf0cca4a21826628f93c76bcc04099586327b7a52f9f41e9a8d2b5605fee04315c03475568e1914664a28b19530db80d81291a9e424dcea0d89a292f45
7
- data.tar.gz: 818deef96037cbdcf64d2d24e2dd9e3a9fb0705ca70b9796ed91808dd51ac5eda532c622c0c6f8bac9d91159e4fa026bfd4ffb7cea7e97641d19907af8ce2df4
6
+ metadata.gz: 7eb40d3d6563d1eec0f822a758ac4cbbccbb73dbcbe13e0ddfc992e9b9a39ed8746035fec3e85ab6610278584c3db873a37d9cd87ffbfbb0dd9152f7126c1da4
7
+ data.tar.gz: 6eef8ebe76bc77bae7efe13a78a43329ceeb8ae3e1aa44d5e444ebc7d09290f17fa9d31c0b9a6fe12599dda1f33230bea23e718b0ae919ebf955d5e0ff9aaac0
data/RELEASE.md ADDED
@@ -0,0 +1,5 @@
1
+ ```
2
+ gem build uptrace.gemspec
3
+ bundle install
4
+ gem push uptrace-0.2.0.gem
5
+ ```
@@ -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}/search?q=#{trace_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
- statusCode: status_code_as_str(span.status.code),
85
- statusMessage: span.status.description,
85
+ out[parentId] = span.parent_span_id.unpack1('Q') if span.parent_span_id
86
86
 
87
- tracer: uptrace_tracer(span.instrumentation_library)
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
- out['parentId'] = span.parent_span_id.unpack1('Q') if span.parent_span_id
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
- out['events'] = uptrace_events(span.events) unless span.events.nil?
93
- out['links'] = uptrace_links(span.links) unless span.links.nil?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uptrace
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
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.1
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-19 00:00:00.000000000 Z
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