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 +4 -4
- data/lib/protobuf/opentracing/version.rb +1 -1
- data/lib/protobuf/rpc/extensions/client.rb +11 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da059794758f56ae8e9c2c9ab89f813018e5869b06166146724196b798e59a8f
|
4
|
+
data.tar.gz: 4f940708adadd87f8d9213911566574ae47d43afe40575629f285c192f617aee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cf9d4a15362730f690b7409f835fa001fc1e27c6e9c464b40819ddda46c255298dab3949683dc2b9813758c2615af908af9f92e70a7a8c5e293be08bdf6a90f
|
7
|
+
data.tar.gz: eeef7c9156366a6b40eadff6106dc7d2d3fba81545902770769ad903821125e550aa0d9afa1f550d865dfe64fb7b6a0103ce045c649e51cfc9d9ae359b2b5fa2
|
@@ -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
|
-
|
9
|
-
|
10
|
-
|
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)
|
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.
|
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
|
+
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:
|
208
|
+
version: 1.3.1
|
209
209
|
requirements: []
|
210
210
|
rubyforge_project:
|
211
211
|
rubygems_version: 2.7.6
|