feat: Add request logging and traffic metrics for API performance monitoring
This commit is contained in:
@@ -73,6 +73,8 @@ export async function startApi(env = {}) {
|
||||
PSU_SOURCE_ORIGIN: `http://127.0.0.1:${source.address().port}`,
|
||||
PSU_DATA_DIR: data,
|
||||
PSU_SOURCE_TIMEOUT_MS: "500",
|
||||
// The request log would drown the test output; the metrics test turns it on.
|
||||
PSU_REQUEST_LOG: "off",
|
||||
...env,
|
||||
});
|
||||
const { app } = await import("../../server/index.js");
|
||||
|
||||
Reference in New Issue
Block a user