Skip to content

Add more histograms #3775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 6, 2021
Merged

Add more histograms #3775

merged 3 commits into from
Jul 6, 2021

Conversation

pietroalbini
Copy link
Member

This PR adds more histograms to the metrics we collect, exposing information that could be useful when we get paged. Two metrics were added:

  • cratesio_instance_database_time_to_obtain_connection: how long it takes to obtain a database connection
  • cratesio_instance_downloads_select_query_execution_time: how long the SELECT in the download endpoint takes

A side effect of this is that TimingRecorder is not needed anymore: we used it to measure those two things, appending them in the logs for slow requests, but now that we have metrics there is no need to have it. If we need to measure more timings in the future we can just add more histograms. This PR thus removes TimingRecorder from the codebase.

r? @jtgeibel or @Turbo87
This can be reviewed commit-by-commit.

@Turbo87 Turbo87 added A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear labels Jul 6, 2021
@Turbo87
Copy link
Member

Turbo87 commented Jul 6, 2021

LGTM

@bors r+

@bors
Copy link
Contributor

bors commented Jul 6, 2021

📌 Commit 2fff66c has been approved by Turbo87

@bors
Copy link
Contributor

bors commented Jul 6, 2021

⌛ Testing commit 2fff66c with merge 3c448ad...

@bors
Copy link
Contributor

bors commented Jul 6, 2021

☀️ Test successful - checks-actions
Approved by: Turbo87
Pushing 3c448ad to master...

@bors bors merged commit 3c448ad into rust-lang:master Jul 6, 2021
@pietroalbini pietroalbini deleted the more-histograms branch July 6, 2021 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants