protobuf-opentracing 1.0.4 → 1.0.5
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: ba55f299a4653791eb97c6fd2bd3427ecc4e414783a434a656495ab9b53f854d
|
4
|
+
data.tar.gz: c6009955bdece3731b6b595c4b1d01e7fb5d211527c491a8f3145c9e0ae1e5cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27cc6e557d92834f352856e902632e63ef06cbc0b0410aed3cdd5643a871f609be8b65b30bf10f6714b4c95f06a9302656e296138517c5dbce87d9333b47197f
|
7
|
+
data.tar.gz: '09101aad7afed727919fd7987833879bdbf91d72a5497cc53616e0b9b7fb8a05f9c4901366ef7c89338bc0bedb8566338c57082e6b6f7fd35ef9426622f3825b'
|
@@ -13,6 +13,8 @@ module Protobuf
|
|
13
13
|
parent = ::OpenTracing.extract(::OpenTracing::FORMAT_TEXT_MAP, headers)
|
14
14
|
options = {}
|
15
15
|
options[:child_of] = parent unless parent.nil?
|
16
|
+
options[:tags] = {}
|
17
|
+
options[:tags]["span.kind"] = "server"
|
16
18
|
result = nil
|
17
19
|
|
18
20
|
::OpenTracing.start_active_span(operation, options) do
|
@@ -15,10 +15,13 @@ module Protobuf
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def start_span
|
18
|
+
tags = {
|
19
|
+
"span.kind" => "client",
|
20
|
+
}
|
18
21
|
if ::OpenTracing.active_span
|
19
|
-
::OpenTracing.start_span(operation_name)
|
22
|
+
::OpenTracing.start_span(operation_name, :tags => tags)
|
20
23
|
else
|
21
|
-
::OpenTracing.start_active_span(operation_name).span
|
24
|
+
::OpenTracing.start_active_span(operation_name, :tags => tags).span
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf-opentracing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos Minond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|