in lib/skywalking/span.lua [68:86]
function _M.createEntrySpan(operationName, context, parent, contextCarrier)
local span = _M.new(operationName, context, parent)
span.is_entry = true
if contextCarrier ~= nil then
local propagatedContext = contextCarrier[CONTEXT_CARRIER_KEY]
if propagatedContext ~= nil then
local ref = SegmentRef.fromSW8Value(propagatedContext)
if ref ~= nil then
context.internal.addRefIfFirst(context.internal, ref)
table.insert(span.refs, ref)
end
end
end
return span
end