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 /atuin-server/src | |
| parent | feat: make deleting from the UI work with record store sync (#1580) (diff) | |
| download | atuin-b3b4b8cdd4954af810251103d8187ddfb440668f.zip | |
feat: add metrics counter for records downloaded (#1584)
Diffstat (limited to 'atuin-server/src')
| -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 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)) } |
