1 parent 05eda81 commit 956935aCopy full SHA for 956935a
1 file changed
apisix/utils/tracer.lua
@@ -67,7 +67,7 @@ function _M.finish_all_spans(code, message)
67
return
68
end
69
for _, sp in pairs(ngx.ctx._apisix_spans) do
70
- if not sp:is_finished() then
+ if code then
71
sp:set_status(code, message)
72
73
sp:finish()
0 commit comments