zipkin 0.4.2 → 1.0.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
  SHA1:
3
- metadata.gz: 36c4a782eae1fa0559ef600a4136e6b828fdb9b9
4
- data.tar.gz: 774887b1682f3a04df1c070a15231e497ab3e671
3
+ metadata.gz: aeadc7212236b56f7c043a9843f9d2aababefd59
4
+ data.tar.gz: d9dd7f5f7f360c45b14f3005c7df7b400ae165e4
5
5
  SHA512:
6
- metadata.gz: 9227454685a35e51a78d289628ce32f958ab474e6767096006e7a51ee57b7cc1fc7c08ea8c4576a77a704ebb20ca97760dbfa1b20a48b9dc5956a8147624f5d9
7
- data.tar.gz: b8cde49aa0f2b749774db9ae61e7e60b2b38941db8d9f61c405a0fce0e2df30098fa08ce8832ee94833dbd90b9c5784ec2322402701f98056590ddf639df30e2
6
+ metadata.gz: c1cb34590a8188c6a604e2fc82f62fd74f7e4858adb7b6d4077e0903dced0d1b273f820a9027884195ede22224cbf001b77769207489e86a95ce516d3168a1bd
7
+ data.tar.gz: f015323bcb10ee83346c7a09384bd560f301c3453ff0b70d4ce604bdea47d84dad7167a2e9c4b452b733d601899952cad1504fdebc51000fe3538409d3a3d0f0
data/lib/zipkin/tracer.rb CHANGED
@@ -64,10 +64,10 @@ module Zipkin
64
64
  def inject(span_context, format, carrier)
65
65
  case format
66
66
  when OpenTracing::FORMAT_TEXT_MAP
67
- carrier['trace-id'] = span_context.trace_id
68
- carrier['parent-id'] = span_context.parent_id
69
- carrier['span-id'] = span_context.span_id
70
- carrier['sampled'] = span_context.sampled? ? '1' : '0'
67
+ carrier['x-b3-traceid'] = span_context.trace_id
68
+ carrier['x-b3-parentspanid'] = span_context.parent_id
69
+ carrier['x-b3-spanid'] = span_context.span_id
70
+ carrier['x-b3-sampled'] = span_context.sampled? ? '1' : '0'
71
71
  when OpenTracing::FORMAT_RACK
72
72
  carrier['X-B3-TraceId'] = span_context.trace_id
73
73
  carrier['X-B3-ParentSpanId'] = span_context.parent_id
@@ -86,10 +86,10 @@ module Zipkin
86
86
  def extract(format, carrier)
87
87
  case format
88
88
  when OpenTracing::FORMAT_TEXT_MAP
89
- trace_id = carrier['trace-id']
90
- parent_id = carrier['parent-id']
91
- span_id = carrier['span-id']
92
- sampled = carrier['sampled'] == '1'
89
+ trace_id = carrier['x-b3-traceid']
90
+ parent_id = carrier['x-b3-parentspanid']
91
+ span_id = carrier['x-b3-spanid']
92
+ sampled = carrier['x-b3-sampled'] == '1'
93
93
 
94
94
  create_span_context(trace_id, span_id, parent_id, sampled)
95
95
  when OpenTracing::FORMAT_RACK
data/zipkin.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'zipkin'
7
- spec.version = '0.4.2'
7
+ spec.version = '1.0.0'
8
8
  spec.authors = ['SaleMove TechMovers']
9
9
  spec.email = ['techmovers@salemove.com']
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipkin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SaleMove TechMovers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-01 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler