[Rum-6852] Add "Effective Sample Rate" to telemetry events#2453
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2453 +/- ##
===========================================
+ Coverage 70.27% 70.38% +0.11%
===========================================
Files 780 780
Lines 28823 28852 +29
Branches 4824 4833 +9
===========================================
+ Hits 20255 20306 +51
+ Misses 7226 7204 -22
Partials 1342 1342
|
| * @param messageBuilder the lambda building the metric message | ||
| * @param additionalProperties additional properties to add to the metric | ||
| * @param samplingRate value between 0-100 for sampling the event. Note that the sampling rate applied to this | ||
| * @param creationSampleRate value between 0-100 that was applied for long-lived metrics. This value will not be |
There was a problem hiding this comment.
I am not sure I understand the documentation here, and the documentation doesn't explain where the word creation in the argument name comes from
There was a problem hiding this comment.
I subscribe here, I am not sure why you need this and what this should be
There was a problem hiding this comment.
Make sense, updated, hope it's more clear now
mariusc83
left a comment
There was a problem hiding this comment.
We need to remove the sessionSampleRate from effectiveSamplingRate equation.
…one for the fakeCreationSampleRate
mariusc83
left a comment
There was a problem hiding this comment.
I am actually going to approve this as I do not want to block the PR. I will not be here to review it again.
done |
| * metric will be applied in addition to the global telemetry sampling rate. | ||
| * @param creationSampleRate value between 0-100. Some of the metrics like [PerformanceMetric] being sampled on the | ||
| * metric creation place and then reported with 100% probability. In such cases we need to use *creationSampleRate* | ||
| * to compute effectiveSampleRate correctly |
There was a problem hiding this comment.
since you give a null default value here, it's better to explain it as well , for example what does null mean, does it mean 0 if we give null ?
35e11e3 to
492f178
Compare
removing sessionSample rate from effective sample rate computation, getting rid from specific extension method
492f178 to
6a57e0a
Compare
What does this PR do?
Motivation
Main goal is to be able to see what exact value was applied through different sampling layer
Review checklist (to be filled by reviewers)