protobuf-opentracing 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c0c3a7bfbaef0b984cce963386885d7a0003aa5c1f3e7315225eff15123bef6
4
- data.tar.gz: 0a367949ba54df28d4d7319848b79ccee21269e901971bd22dd2c48741870abd
3
+ metadata.gz: 38d153b3d3979dfa0b59003356d9a8c456d4ed0cc4be0502db94e2870c38f955
4
+ data.tar.gz: 75fbd7bde2417d182f2dd3158d6e98a59958cf1cbfee2e7c8e9667ab636719c5
5
5
  SHA512:
6
- metadata.gz: 93aef7460ca5cb0ff2cf7f71aef9d615167528ce60a8273647f89bdb7595406c2dd033d2c385c84fc122dcd4ed401c07fbcb1660a25249a9d0f10c7604b19039
7
- data.tar.gz: 7612063c3d5cb1223d5548f8bd4bd3af3619322d78a9f27647b5345d7302b847d46c7bf0ae39b72ab215efec237d938af8f52f38b3bab9bf72341d001af41314
6
+ metadata.gz: 4d6cd78cb97cee8ec9ca5ed0062baa268999b38fdb04638cffef39ed907226a39c7ea652ff12e3fe30cc45c9390aa11c75a11b23ae4f3344fde62e9ec4e80720
7
+ data.tar.gz: b38d39cca692d601840aff5d719a1b033ef5a425239cbc374919b80979a6a32ad04e23bf21ae20516fddcd9c21ccec8414213a0ec6593f459bd76c7e29429c1d
data/README.md CHANGED
@@ -20,8 +20,8 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- When laoded, this gem injects middleware into the RPC client flow which will
24
- decode tracing information and start a new active span. See the
23
+ When loaded, this gem injects itself into the RPC server and client flow to
24
+ include and handle tracing information on requests. See the
25
25
  [`opentracing`](https://rubygems.org/gems/opentracing/) gem for additional
26
26
  information.
27
27
 
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module Opentracing
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -3,10 +3,10 @@ module Protobuf
3
3
  module Extensions
4
4
  module Base
5
5
  def request_fields
6
- return super if ::OpenTracing.active_span.nil?
6
+ return super if options[:tracing_span].nil?
7
7
 
8
8
  trace_carrier = {}
9
- ::OpenTracing.inject(::OpenTracing.active_span.context,
9
+ ::OpenTracing.inject(options[:tracing_span].context,
10
10
  ::OpenTracing::FORMAT_TEXT_MAP,
11
11
  trace_carrier)
12
12
 
@@ -4,6 +4,7 @@ module Protobuf
4
4
  module Client
5
5
  def send_request
6
6
  span = start_span
7
+ options[:tracing_span] = span
7
8
  results = super
8
9
  span.finish
9
10
  results
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.3
4
+ version: 1.0.4
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-04-10 00:00:00.000000000 Z
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport