Skip to content

Remove double computation of the RUM payload#2528

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/remove-double-body-computation-in-rum-upload
Mar 10, 2025
Merged

Remove double computation of the RUM payload#2528
0xnm merged 1 commit into
developfrom
nogorodnikov/remove-double-body-computation-in-rum-upload

Conversation

@0xnm

@0xnm 0xnm commented Mar 7, 2025

Copy link
Copy Markdown
Member

What does this PR do?

With https://github.com/DataDog/dd-sdk-android/pull/2298/files#diff-f064e155f59f2de7bfba9d1771f4f6721c48ba34cc1247e8cca065129dedf51b the double computation of the RUM upload body was added, but in fact MessageDigest.digest (-> MessageDigest.update under the hood) doesn't mutate input data, so it is safe to use it even after calling this method.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm requested review from a team as code owners March 7, 2025 09:32
@codecov-commenter

codecov-commenter commented Mar 7, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.05%. Comparing base (5a98bd8) to head (318d81d).
Report is 13 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2528      +/-   ##
===========================================
- Coverage    70.08%   70.05%   -0.03%     
===========================================
  Files          797      797              
  Lines        29990    29988       -2     
  Branches      5018     5015       -3     
===========================================
- Hits         21017    21007      -10     
- Misses        7578     7587       +9     
+ Partials      1395     1394       -1     
Files with missing lines Coverage Δ
...adog/android/rum/internal/net/RumRequestFactory.kt 67.86% <100.00%> (-0.32%) ⬇️

... and 26 files with indirect coverage changes

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

@0xnm
0xnm merged commit f37baf1 into develop Mar 10, 2025
@0xnm
0xnm deleted the nogorodnikov/remove-double-body-computation-in-rum-upload branch March 10, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants