未验证 提交 45cf6464 编写于 作者: 静夜思朝颜's avatar 静夜思朝颜 提交者: GitHub

fix wrong context carrier endpoint data (#33)

Co-authored-by: NMrproliu <mrproliu@lagou.com>
上级 926fcfe8
......@@ -102,11 +102,7 @@ function _M.createExitSpan(operationName, context, parent, peer, contextCarrier)
local firstSpan = context.internal.first_span
local parentEndpointName
if context.internal.first_ref then
parentEndpointName = context.internal.first_ref.entry_endpoint_name
else
parentEndpointName = firstSpan.operation_name
end
parentEndpointName = firstSpan.operation_name
injectableRef.parent_endpoint = parentEndpointName
contextCarrier[CONTEXT_CARRIER_KEY] = SegmentRef.serialize(injectableRef)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册