Skip to content

Conversation

@rzikm
Copy link
Member

@rzikm rzikm commented Dec 5, 2025

The AssetDownloadStop event did not contain the downloaded payload size

The AssetDownloadStop event did not contain the downloaded payload size
@rzikm rzikm requested review from a team, bartonjs and Copilot December 5, 2025 14:33
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 5, 2025
Copilot finished reviewing on behalf of rzikm December 5, 2025 14:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the X509ResourceClient instrumentation where the AssetDownloadStop event was not reporting the actual downloaded payload size on successful downloads. The issue occurred because the return statement bypassed the assignment to the ret variable that tracks the downloaded bytes.

  • Fixed return statement to assign result to ret variable before returning
  • Ensures the finally block can report the correct downloaded payload size to the AssetDownloadStop event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants