Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add uTP duration metrics #1646

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

KolbyML
Copy link
Member

@KolbyML KolbyML commented Jan 20, 2025

What was wrong?

For the most part we have no idea into how uTP is performing, are things working right? Idk lets add some metrics

How was it fixed?

add a timer attached to the semaphore. This metric won't include uTP transfers initiated over json-rpc, but I am not really concerned with the uTP transfers over json-rpc

@KolbyML KolbyML self-assigned this Jan 20, 2025
Copy link
Member

@ogenev ogenev left a comment

Choose a reason for hiding this comment

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

LGTM 👍

use trin_metrics::timer::DiscardOnDropHistogramTimer;

#[derive(Debug)]
pub struct OwnedTimedSemaphorePermit {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Some doc strings are always nice

@KolbyML KolbyML force-pushed the add-utp-duration-metrics branch from a8b2ac9 to b001bac Compare January 21, 2025 05:19
@KolbyML KolbyML merged commit 40cab0b into ethereum:master Jan 21, 2025
11 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants