restclient-instrumentation 0.1.0 → 0.1.1
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 +4 -4
- data/lib/restclient/instrumentation.rb +4 -2
- data/lib/restclient/instrumentation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89515111f08ebf5db98ad27d89376477e3caa457
|
|
4
|
+
data.tar.gz: 37a7e887d23e63b8b52aa288432daffaee92646e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fe1d70d8a037c35cea76a8c1104df39abd2351f856a11c68389d3129214f61bfa5909325c25d517883d5167985e3884a1f4dc25cfa6433be1859a39b6c08009
|
|
7
|
+
data.tar.gz: 0acfffb7f05b71c793db2cbf93bead03b069030fb9f48ded86b6ef9a0b845064b480b106ea8997eb0d62e667008612e4e1d591072ed8f7d11d308b77fc95f738
|
|
@@ -29,7 +29,8 @@ module RestClient
|
|
|
29
29
|
|
|
30
30
|
result = nil
|
|
31
31
|
|
|
32
|
-
|
|
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
|
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.
|
|
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
|
+
date: 2018-12-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opentracing
|