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 +4 -4
- data/lib/zipkin/tracer.rb +8 -8
- data/zipkin.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeadc7212236b56f7c043a9843f9d2aababefd59
|
4
|
+
data.tar.gz: d9dd7f5f7f360c45b14f3005c7df7b400ae165e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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['
|
68
|
-
carrier['
|
69
|
-
carrier['
|
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['
|
90
|
-
parent_id = carrier['
|
91
|
-
span_id = carrier['
|
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
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
|
+
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
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|