summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-04-25 10:42:04 +0100
committerGitHub <noreply@github.com>2024-04-25 10:42:04 +0100
commitfc5522f45ef0735fb3b492329f95770203d21a7f (patch)
tree34d2ed441561e0387bef0079e238b5a8d629c731
parentd020c815c121f7f28cfcf1419f94109851fdc422 (diff)
chore: add some more debug logs (#1979)
P99 is usually <100ms which is excellent, but occasionally has big spikes to 1000ms. This is only on the record index. I don't want this to get out of hand. I've ran a few test queries and they all complete very fast, and are purely index scans. Hopefully this helps figure out if it's a specific user with tonnes of stores or something? Otherwise there could be something up with my db. I should probably also figure out some proper log levels or tracing lol.
-rw-r--r--crates/atuin-server/src/handlers/v0/record.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/atuin-server/src/handlers/v0/record.rs b/crates/atuin-server/src/handlers/v0/record.rs
index 321c34c2..4a6bce16 100644
--- a/crates/atuin-server/src/handlers/v0/record.rs
+++ b/crates/atuin-server/src/handlers/v0/record.rs
@@ -70,6 +70,8 @@ pub async fn index<DB: Database>(
}
};
+ tracing::debug!(user = user.username, "record index request");
+
Ok(Json(record_index))
}