From fc5522f45ef0735fb3b492329f95770203d21a7f Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 25 Apr 2024 10:42:04 +0100 Subject: 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. --- crates/atuin-server/src/handlers/v0/record.rs | 2 ++ 1 file changed, 2 insertions(+) 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( } }; + tracing::debug!(user = user.username, "record index request"); + Ok(Json(record_index)) } -- cgit v1.3.1