istox 0.1.152.1.test11 → 0.1.152.1.test12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0518e72284a043cc9398f94f73ce6457562a90770c0715595b96e0d8a0012e52'
|
4
|
+
data.tar.gz: 606b56f3bb8c428630fe25c9044aac4a0480ae4696f51654d6c955cdf5ae561b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f892b93255459466a29c38dec9061335557f882958700dfd5422b993b291c41336eb81fd1c534a4d5d678886974090c8e2b3366e11c4ca990e107674db9454fb
|
7
|
+
data.tar.gz: 5539cf696c88041ab9b78844b939cb3aed9dcce2fa83f9d6fe83518826d3fb7a61f7740b4b9c916883c75a07dcdbe8f1de7284d081f2ebf192ed87a073a26533
|
data/Gemfile.lock
CHANGED
@@ -22,6 +22,7 @@ module Istox
|
|
22
22
|
XRay.recorder.begin_subsegment("GrpcRequest.#{request_context.method}")
|
23
23
|
|
24
24
|
request_context.metadata[:xray_trace_id] = XRay.recorder.current_segment.trace_id
|
25
|
+
request_context.metadata[:xray_parent_id] = XRay.recorder.current_segment.id
|
25
26
|
|
26
27
|
result = yield
|
27
28
|
|
@@ -7,8 +7,9 @@ module Istox
|
|
7
7
|
def call
|
8
8
|
meta = request.active_call.metadata
|
9
9
|
trace_id = (meta['xray_trace_id'] if meta.present? && meta.key?('xray_trace_id'))
|
10
|
+
parent_id = (meta['xray_parent_id'] if meta.present? && meta.key?('xray_parent_id'))
|
10
11
|
|
11
|
-
XRay.recorder.begin_segment("GrpcHandler.#{request.method_key}", trace_id: trace_id)
|
12
|
+
XRay.recorder.begin_segment("GrpcHandler.#{request.method_key}", trace_id: trace_id, parent_id: parent_id)
|
12
13
|
|
13
14
|
result = yield # this returns the protobuf message
|
14
15
|
|
data/lib/istox/version.rb
CHANGED