We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/vendor/swoft/rpc-client/src/Extender.php
/** * @return array */ public function getExt(): array { return [ context()->get('traceid', ''), context()->get('spanid', ''), context()->get('parentid', ''), context()->get('extra', null), ]; }
/vendor/swoft/rpc-server/src/Listener/BeforeReceiveListener.
if (Log::getLogger()->isEnable()) { $uri = sprintf('%s::%s::%s', $request->getVersion(), $request->getInterface(), $request->getMethod()); $data = [ 'traceid' => $request->getExtKey('traceid', ''), 'spanid' => $request->getExtKey('spanid', ''), 'parentid' => $request->getExtKey('parentid', ''), 'uri' => $uri, 'requestTime' => $request->getRequestTime(), ]; $serviceContext->setMulti($data); }
rpc-client getExt的时候获取ext数组是索引数组,key值是0,1,2,3... 而rpc-server getExtKey的时候是直接通过traceid去获取的,是获取不到值的 建议rpc-client getExt的时候直接返回关联数组
The text was updated successfully, but these errors were encountered:
swoft-cloud/swoft-component@15bad43
fix: swoft-cloud/swoft/issues/1303 rpc ext data key is error
040a1d6
stelin
inhere
No branches or pull requests
/vendor/swoft/rpc-client/src/Extender.php
/vendor/swoft/rpc-server/src/Listener/BeforeReceiveListener.
rpc-client getExt的时候获取ext数组是索引数组,key值是0,1,2,3...
而rpc-server getExtKey的时候是直接通过traceid去获取的,是获取不到值的
建议rpc-client getExt的时候直接返回关联数组
The text was updated successfully, but these errors were encountered: