protobuf-opentracing 1.0.6 → 1.0.7.pre

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: d43d3f0fc311124668b0d6126575c8d79fa768f2c210714127b2aa5e4acf34da
4
- data.tar.gz: d911ce8b56fefe713f3edaf21258629e5f5c311510a8c174b200d6c594d389f1
3
+ metadata.gz: da059794758f56ae8e9c2c9ab89f813018e5869b06166146724196b798e59a8f
4
+ data.tar.gz: 4f940708adadd87f8d9213911566574ae47d43afe40575629f285c192f617aee
5
5
  SHA512:
6
- metadata.gz: 9227f46fef433ed4912ecc324deb95bd25e71bdc63865bf4e79b530337705608446484ad95c062e664d005ef3ac06e2a11e1854b2c098d8cdb0cad1291c725da
7
- data.tar.gz: a56664864fd6188b64ef5e2b57fd9de61b7cf1dbfddb4be7102a4def0a90ca0f1be2c4e1e17085572c04d56a7260424ceffd43ccb3d1437f8b2ecff5e392ee4c
6
+ metadata.gz: 2cf9d4a15362730f690b7409f835fa001fc1e27c6e9c464b40819ddda46c255298dab3949683dc2b9813758c2615af908af9f92e70a7a8c5e293be08bdf6a90f
7
+ data.tar.gz: eeef7c9156366a6b40eadff6106dc7d2d3fba81545902770769ad903821125e550aa0d9afa1f550d865dfe64fb7b6a0103ce045c649e51cfc9d9ae359b2b5fa2
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module Opentracing
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7.pre"
4
4
  end
5
5
  end
@@ -3,11 +3,15 @@ module Protobuf
3
3
  module Extensions
4
4
  module Client
5
5
  def send_request
6
- span = start_span
6
+ scope, span = start_span
7
7
  options[:tracing_span] = span
8
- results = super
9
- span.finish
10
- results
8
+ super
9
+ ensure
10
+ if scope
11
+ scope.close
12
+ else
13
+ span.finish
14
+ end
11
15
  end
12
16
 
13
17
  def operation_name
@@ -20,9 +24,10 @@ module Protobuf
20
24
  "component" => "Protobuf",
21
25
  }
22
26
  if ::OpenTracing.active_span
23
- ::OpenTracing.start_span(operation_name, :tags => tags)
27
+ [nil, ::OpenTracing.start_span(operation_name, :tags => tags)]
24
28
  else
25
- ::OpenTracing.start_active_span(operation_name, :tags => tags).span
29
+ scope = ::OpenTracing.start_active_span(operation_name, :tags => tags)
30
+ [scope, scope.span]
26
31
  end
27
32
  end
28
33
  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.6
4
+ version: 1.0.7.pre
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-06-11 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -203,9 +203,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - ">"
207
207
  - !ruby/object:Gem::Version
208
- version: '0'
208
+ version: 1.3.1
209
209
  requirements: []
210
210
  rubyforge_project:
211
211
  rubygems_version: 2.7.6