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: 38d153b3d3979dfa0b59003356d9a8c456d4ed0cc4be0502db94e2870c38f955
4
- data.tar.gz: 75fbd7bde2417d182f2dd3158d6e98a59958cf1cbfee2e7c8e9667ab636719c5
3
+ metadata.gz: ba55f299a4653791eb97c6fd2bd3427ecc4e414783a434a656495ab9b53f854d
4
+ data.tar.gz: c6009955bdece3731b6b595c4b1d01e7fb5d211527c491a8f3145c9e0ae1e5cf
5
5
  SHA512:
6
- metadata.gz: 4d6cd78cb97cee8ec9ca5ed0062baa268999b38fdb04638cffef39ed907226a39c7ea652ff12e3fe30cc45c9390aa11c75a11b23ae4f3344fde62e9ec4e80720
7
- data.tar.gz: b38d39cca692d601840aff5d719a1b033ef5a425239cbc374919b80979a6a32ad04e23bf21ae20516fddcd9c21ccec8414213a0ec6593f459bd76c7e29429c1d
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
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module Opentracing
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
@@ -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
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-06 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport