Skip to content

RUM-6293: Remove Batch metrics inner sampler to increase sample rate#2328

Merged
ambushwork merged 1 commit into
developfrom
yl/telemetry/increate-batch-sample-rate
Oct 18, 2024
Merged

RUM-6293: Remove Batch metrics inner sampler to increase sample rate#2328
ambushwork merged 1 commit into
developfrom
yl/telemetry/increate-batch-sample-rate

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

The whole context please check the ticket: RUM-6293

TL,DR;

The sample rate should be decreased by 10 times but wrongly decreased by 1000 times,

Since we have add sample rate option on logMetric method, now it doesn't make sense to have another sampler inside BatchMetricsDispatcher. By removing it, the sample rate is simply controlled by the parameter passed into logMetric and the total sample rate will be increased by (1/0.015f) = 66.6 times.

Motivation

RUM-6293

Additional Notes

Anything else we should know when reviewing?

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)

@codecov-commenter

codecov-commenter commented Oct 17, 2024

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 70.39%. Comparing base (774c798) to head (d5d50b0).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
...id/core/internal/metrics/BatchMetricsDispatcher.kt 66.67% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2328      +/-   ##
===========================================
- Coverage    70.41%   70.39%   -0.02%     
===========================================
  Files          739      739              
  Lines        27536    27536              
  Branches      4614     4614              
===========================================
- Hits         19388    19383       -5     
+ Misses        6866     6863       -3     
- Partials      1282     1290       +8     
Files with missing lines Coverage Δ
...id/core/internal/metrics/BatchMetricsDispatcher.kt 95.95% <66.67%> (ø)

... and 30 files with indirect coverage changes

@ambushwork
ambushwork marked this pull request as ready for review October 17, 2024 13:39
@ambushwork
ambushwork requested review from a team as code owners October 17, 2024 13:39
@ambushwork
ambushwork merged commit fe79b80 into develop Oct 18, 2024
@ambushwork
ambushwork deleted the yl/telemetry/increate-batch-sample-rate branch October 18, 2024 07:15
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