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
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

@rzikm rzikm added area-System.Security and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Dec 10, 2025
@rzikm rzikm merged commit 8dbca2c into main Dec 10, 2025
92 of 97 checks passed
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants