Skip to content

Commit

Permalink
feat: add metrics counter for records downloaded (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed Jan 17, 2024
1 parent d9317a1 commit b3b4b8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atuin-server/src/handlers/v0/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,7 @@ pub async fn next<DB: Database>(
}
};

counter!("atuin_record_downloaded", records.len() as u64);

Ok(Json(records))
}

0 comments on commit b3b4b8c

Please sign in to comment.