未验证 提交 7e4fd141 编写于 作者: 罗泽轩 提交者: GitHub

doc: emphasize that the finish should be called only when the output is finished (#2)

上级 db0d3c76
......@@ -48,7 +48,9 @@ http {
proxy_pass http://127.0.0.1:8080/backend;
body_filter_by_lua_block {
require("tracer"):finish()
if ngx.arg[2] then
require("tracer"):finish()
end
}
log_by_lua_block {
......
......@@ -57,7 +57,9 @@ http {
proxy_pass http://127.0.0.1:8080/tier2/lb;
body_filter_by_lua_block {
require("tracer"):finish()
if ngx.arg[2] then
require("tracer"):finish()
end
}
log_by_lua_block {
......@@ -75,7 +77,9 @@ http {
proxy_pass http://127.0.0.1:8080/backend;
body_filter_by_lua_block {
require("tracer"):finish()
if ngx.arg[2] then
require("tracer"):finish()
end
}
log_by_lua_block {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册