Skip to content
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

metrics: rename *_poll_count_* to *_poll_time_* #6924

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

rcoh
Copy link
Contributor

@rcoh rcoh commented Oct 21, 2024

Note: If this PR does not make the 1.41 release, one more deprecation needs to be added prior to merge

Motivation

A consistent bit of feedback I've heard is that the poll_count_histogram name is a little confusing since the value customers actually get out of it is poll_times.

Solution

This renames all public APIs from poll_count to poll_time. The existing APIs were deprecated with one exception: the newly added poll_count_histogram_configuration which hasn't been released yet was simply renamed.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-metrics Module: tokio/runtime/metrics labels Oct 21, 2024
tokio/src/runtime/metrics/runtime.rs Outdated Show resolved Hide resolved
tokio/src/runtime/metrics/runtime.rs Outdated Show resolved Hide resolved
tokio/src/runtime/builder.rs Outdated Show resolved Hide resolved
tokio/src/runtime/builder.rs Show resolved Hide resolved
A consistent bit of feedback I've heard is that the `poll_count_histogram` name is a little confusing since the value customers actually get out of it is `poll_times`.

This renames all public APIs from `poll_count` to `poll_time`. The existing APIs were deprecated with one exception: the newly added `poll_count_histogram_configuration` which hasn't been released yet was simply renamed.
@rcoh rcoh force-pushed the poll-time-histogram-rename branch from 5a72aca to 9b25f46 Compare October 21, 2024 14:50
@rcoh rcoh force-pushed the poll-time-histogram-rename branch from b437e47 to 07ae5b1 Compare October 21, 2024 15:16
@Darksonn Darksonn merged commit fbfeb9a into tokio-rs:master Oct 22, 2024
81 checks passed
mox692 added a commit to mox692/tokio that referenced this pull request Oct 22, 2024
@rcoh rcoh deleted the poll-time-histogram-rename branch October 22, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-metrics Module: tokio/runtime/metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants