Skip to content

Commit 956935a

Browse files
committed
fix
1 parent 05eda81 commit 956935a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apisix/utils/tracer.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function _M.finish_all_spans(code, message)
6767
return
6868
end
6969
for _, sp in pairs(ngx.ctx._apisix_spans) do
70-
if not sp:is_finished() then
70+
if code then
7171
sp:set_status(code, message)
7272
end
7373
sp:finish()

0 commit comments

Comments
 (0)