Skip to content

fix(piece): collect local peer traffic metrics for cached pieces - #2028

Merged
gaius-qi merged 1 commit into
mainfrom
feature/metrics
Sep 1, 2026
Merged

fix(piece): collect local peer traffic metrics for cached pieces#2028
gaius-qi merged 1 commit into
mainfrom
feature/metrics

Conversation

@gaius-qi

@gaius-qi gaius-qi commented Sep 1, 2026

Copy link
Copy Markdown
Member

Description

Previously, when a piece was already finished and returned early from local storage, no traffic metrics were recorded. This caused local peer traffic to be under-reported in all download paths.

Related Issue

Motivation and Context

Screenshots (if appropriate)

Previously, when a piece was already finished and returned early from
local storage, no traffic metrics were recorded. This caused local peer
traffic to be under-reported in all download paths.

Signed-off-by: Gaius <gaius.qi@gmail.com>
@gaius-qi gaius-qi added this to the v2.6.0 milestone Sep 1, 2026
@gaius-qi gaius-qi self-assigned this Sep 1, 2026
@gaius-qi
gaius-qi requested review from a team as code owners September 1, 2026 11:41
@gaius-qi gaius-qi added the enhancement New feature or request label Sep 1, 2026
@gaius-qi
gaius-qi enabled auto-merge (squash) September 1, 2026 11:41

@BraveY BraveY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.40%. Comparing base (5667a89) to head (70f6dc8).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2028      +/-   ##
==========================================
- Coverage   54.42%   54.40%   -0.02%     
==========================================
  Files         101      101              
  Lines       27427    27427              
==========================================
- Hits        14926    14921       -5     
- Misses      12501    12506       +5     
Files with missing lines Coverage Δ
dragonfly-client/src/resource/piece.rs 36.23% <ø> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gaius-qi
gaius-qi merged commit 37bb7cb into main Sep 1, 2026
9 checks passed
@gaius-qi
gaius-qi deleted the feature/metrics branch September 1, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants