This commit is contained in:
parent
cb03d5aa42
commit
5f7cdbf8d9
@ -81,14 +81,16 @@ async function logRequestToDatabase({
|
||||
{ upsert: true }
|
||||
).exec();
|
||||
|
||||
const point = new Point("proxy");
|
||||
point.tag("type", "request");
|
||||
point.tag("node", nodeId);
|
||||
point.stringField("url", url);
|
||||
point.intField("status", status);
|
||||
const point = new Point("proxy")
|
||||
.tag("type", "request")
|
||||
.tag("node", nodeId)
|
||||
.stringField("url", url)
|
||||
.intField("status", status)
|
||||
.timestamp(Date.now());
|
||||
if (cached) {
|
||||
point.tag("cached", "true");
|
||||
} else {
|
||||
}
|
||||
if (time) {
|
||||
point.intField("time", time as number);
|
||||
}
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user