diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-01-17 10:56:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 10:56:16 +0000 |
commit | b3b4b8cdd4954af810251103d8187ddfb440668f (patch) | |
tree | 31a3640d8b4aec32640b9397dd0492c460e44932 | |
parent | d9317a1a9c14dd1919f3e04537b01d5a14f8aaea (diff) |
feat: add metrics counter for records downloaded (#1584)
-rw-r--r-- | atuin-server/src/handlers/v0/record.rs | 2 |
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 79b2f80c9..438dd4590 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)) } |