-
Notifications
You must be signed in to change notification settings - Fork 198
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
Metric recording built documentation size #2238
Comments
It'd be important to record the median in particular since it's less susceptible to outliers. Percentiles could be useful too. |
What's the use-case for this? It sounds useful. Would "documentation size" rather be the amount of files? Megabytes? all targets? Depending on how exact / how often / how far back to the history we need the numbers, we could also store it in the database. |
Rustdoc recently had a regression (rust-lang/rust#115718) where the docs storage size of certain crates ballooned (from 27 MB to around 500 MB). So for the documentation size, perhaps it'd be the documentation size across all targets, divided by the number of targets for that crate? Storing the data in the database would probably be useful. |
So, some thoughts here (aka, partial mentoring instructions).
generally we could store this in the database per release, and/or report it to prometheus to be able to add it to our dashboards. |
While discussing rust-lang/rust#115718 I had a thought that being able to see historical "typical" documentation sizes could be useful, and docs.rs might be a good place to gather that.
It'll likely be a pretty varying metric depending on what crates are being built each day, maybe too variable to be useful, but I think it should be pretty easy to add and then we could see whether it seems to give useful data.
The text was updated successfully, but these errors were encountered: