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

Update readdirplus metric to use histogram instead of counter #1254

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mountpoint-s3/src/fuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ where
match block_on(self.fs.readdirplus(parent, fh, offset, replier).in_current_span()) {
Ok(_) => {
reply.ok();
metrics::counter!("fuse.readdirplus.entries").increment(count as u64);
metrics::histogram!("fuse.readdirplus.entries").record(count as f64);
Copy link
Contributor

@dannycjones dannycjones Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make the same change for the readdir operation, as well as readdirplus. I missed that in the original issue!

}
Err(e) => fuse_error!("readdirplus", reply, e),
}
Expand Down
Loading