Skip to content

Commit

Permalink
fix: report inbound strem bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenev committed Jan 20, 2025
1 parent b44e0d8 commit 695f14b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/portalnet/src/utp_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ impl UtpController {
// report utp tx as successful, even if we go on to fail to process the payload
self.metrics
.report_utp_outcome(UtpDirectionLabel::Inbound, UtpOutcomeLabel::Success);
self.metrics.report_bytes_inbound(data.len() as u64);
Ok(Bytes::from(data))
}

Expand Down

0 comments on commit 695f14b

Please sign in to comment.