aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-01-17 10:56:16 +0000
committerGitHub <noreply@github.com>2024-01-17 10:56:16 +0000
commitb3b4b8cdd4954af810251103d8187ddfb440668f (patch)
tree31a3640d8b4aec32640b9397dd0492c460e44932
parentfeat: make deleting from the UI work with record store sync (#1580) (diff)
downloadatuin-b3b4b8cdd4954af810251103d8187ddfb440668f.zip
feat: add metrics counter for records downloaded (#1584)
-rw-r--r--atuin-server/src/handlers/v0/record.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/atuin-server/src/handlers/v0/record.rs b/atuin-server/src/handlers/v0/record.rs
index 79b2f80c..438dd459 100644
--- a/atuin-server/src/handlers/v0/record.rs
+++ b/atuin-server/src/handlers/v0/record.rs
@@ -107,5 +107,7 @@ pub async fn next<DB: Database>(
}
};
+ counter!("atuin_record_downloaded", records.len() as u64);
+
Ok(Json(records))
}