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

feat: track request sizes histograms #3951

Merged
merged 1 commit into from
Oct 20, 2024
Merged

feat: track request sizes histograms #3951

merged 1 commit into from
Oct 20, 2024

Conversation

romange
Copy link
Collaborator

@romange romange commented Oct 19, 2024

This PR introduces "DEBUG RECVSIZE ENABLE|DISABLE|tid" command that allows tracking of request sizes.

This PR introduces "DEBUG RECVSIZE ENABLE|DISABLE|tid"
command that allows tracking of request sizes.

Signed-off-by: Roman Gershman <[email protected]>
@romange romange requested a review from dranikpg October 19, 2024 08:51
@@ -153,7 +154,8 @@ bool TrafficLogger::Write(iovec* blobs, size_t len) {
return true;
}

thread_local TrafficLogger tl_traffic_logger{}; // nullopt while disabled
thread_local TrafficLogger tl_traffic_logger{};
thread_local base::Histogram* io_req_size_hist = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

it could've been just an optional

@romange romange merged commit f0c30a6 into main Oct 20, 2024
12 checks passed
@romange romange deleted the Pr5 branch October 20, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants