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: 82daa9572c278872b41f1ba3d14f29fd8a489b14e5892c6f3728787ce45abb54
4
- data.tar.gz: 6468bf60d9b447b70fcc71c5f3f67df0cee3532c039ef88f28c37421401ce296
3
+ metadata.gz: '0518e72284a043cc9398f94f73ce6457562a90770c0715595b96e0d8a0012e52'
4
+ data.tar.gz: 606b56f3bb8c428630fe25c9044aac4a0480ae4696f51654d6c955cdf5ae561b
5
5
  SHA512:
6
- metadata.gz: 9fd9600278a517f229b208fb59084aaeddaaade39c7a14e06a52a7d2d7d2f6724abfec0443506083ae4cb9f0513f5210c0d9e62e3d808f9d99bb0fa5a1c25de3
7
- data.tar.gz: dd15e2c4119c7c14e1bb9e856bebac213ee1bf084d995144948a63669dd0e6b633fbc5aa478b59ed19038bcebb9b39e50120ac94a1d372039a696cdee8888956
6
+ metadata.gz: f892b93255459466a29c38dec9061335557f882958700dfd5422b993b291c41336eb81fd1c534a4d5d678886974090c8e2b3366e11c4ca990e107674db9454fb
7
+ data.tar.gz: 5539cf696c88041ab9b78844b939cb3aed9dcce2fa83f9d6fe83518826d3fb7a61f7740b4b9c916883c75a07dcdbe8f1de7284d081f2ebf192ed87a073a26533
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.152.1.test10)
4
+ istox (0.1.152.1.test12)
5
5
  awesome_print
6
6
  aws-xray-sdk
7
7
  binding_of_caller
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.152.1.test11'.freeze
2
+ VERSION = '0.1.152.1.test12'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.152.1.test11
4
+ version: 0.1.152.1.test12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng