restclient-instrumentation 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: c1c1baceda857fdf3902ec7abb4b00e91726b4db
4
- data.tar.gz: 2a8ba43119fa5942c725d766895ea8e0bbb82fe2
3
+ metadata.gz: 89515111f08ebf5db98ad27d89376477e3caa457
4
+ data.tar.gz: 37a7e887d23e63b8b52aa288432daffaee92646e
5
5
  SHA512:
6
- metadata.gz: a647b5687ec934895860d477f47beb29b99deae79bae16ca483b0c8f1e9659f69c84d83dcec33c27b5c4913510effaf09605786d85d86cc17c24937c47655493
7
- data.tar.gz: a85da359bf7e87bbee66d31418feb108ca90b84a0ba8a33bbef932e825cf72167f54cb60cb4cc06d0c890b5a3c9655d14593bec7fec9d51e6b73c9d46a6f1532
6
+ metadata.gz: 1fe1d70d8a037c35cea76a8c1104df39abd2351f856a11c68389d3129214f61bfa5909325c25d517883d5167985e3884a1f4dc25cfa6433be1859a39b6c08009
7
+ data.tar.gz: 0acfffb7f05b71c793db2cbf93bead03b069030fb9f48ded86b6ef9a0b845064b480b106ea8997eb0d62e667008612e4e1d591072ed8f7d11d308b77fc95f738
@@ -29,7 +29,8 @@ module RestClient
29
29
 
30
30
  result = nil
31
31
 
32
- span = ::RestClient::Instrumentation.tracer.start_span("restclient.execute", tags: tags)
32
+ scope = ::RestClient::Instrumentation.tracer.start_active_span("restclient.execute", tags: tags)
33
+ span = scope.span
33
34
  begin
34
35
  # make this available to the transmit method to inject the context
35
36
  @span_context = span.context
@@ -45,7 +46,8 @@ module RestClient
45
46
  # pass this along for the original caller to handle
46
47
  raise error
47
48
  ensure
48
- span.finish()
49
+ span.finish if span
50
+ scope.close if scope
49
51
  end
50
52
 
51
53
  result
@@ -1,5 +1,5 @@
1
1
  module Restclient
2
2
  module Instrumentation
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restclient-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashwin Chandrasekar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2018-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing