Skip to content

Fix _dd.rule_psr attribute calculation for RUM#2485

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/fix-rule-psr-calculation-in-rum-attributes
Jan 15, 2025
Merged

Fix _dd.rule_psr attribute calculation for RUM#2485
0xnm merged 1 commit into
developfrom
nogorodnikov/fix-rule-psr-calculation-in-rum-attributes

Conversation

@0xnm

@0xnm 0xnm commented Jan 14, 2025

Copy link
Copy Markdown
Member

What does this PR do?

This attribute should be in the range [0;1], but Sampler#getSampleRate returns a value in the range [0;100], so we need to normalize.

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 January 14, 2025 10:33
@codecov-commenter

codecov-commenter commented Jan 14, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 70.01%. Comparing base (54a38b6) to head (065d519).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
...n/com/datadog/android/okhttp/DatadogInterceptor.kt 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2485      +/-   ##
===========================================
+ Coverage    69.95%   70.01%   +0.06%     
===========================================
  Files          788      788              
  Lines        29605    29604       -1     
  Branches      4943     4944       +1     
===========================================
+ Hits         20709    20725      +16     
+ Misses        7524     7515       -9     
+ Partials      1372     1364       -8     
Files with missing lines Coverage Δ
...n/com/datadog/android/okhttp/DatadogInterceptor.kt 59.43% <0.00%> (-1.25%) ⬇️

... and 32 files with indirect coverage changes

@0xnm
0xnm merged commit eebc972 into develop Jan 15, 2025
@0xnm
0xnm deleted the nogorodnikov/fix-rule-psr-calculation-in-rum-attributes branch January 15, 2025 09:35
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.

3 participants