示例工程 27-debugging-and-observability
27-debugging-and-observability/03-structured-log/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("结构化日志", function()
h.it("一行 JSON 含字段", function()
local r = m.run(function() end)
h.truthy(r.line:sub(1, 1) == "{")
h.eq(r.has_request_id, true)
end)
end)
h.run()