-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUM-886 Provide session replay data in configuration telemetry #1611
RUM-886 Provide session replay data in configuration telemetry #1611
Conversation
4584101
to
e22c4df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
6751fe7
to
8cc72eb
Compare
val sessionReplayFeatureContext = | ||
sdkCore.getFeatureContext(Feature.SESSION_REPLAY_FEATURE_NAME) | ||
val sessionReplaySampleRate = sessionReplayFeatureContext[SESSION_REPLAY_SAMPLE_RATE_KEY] | ||
?.let { it as? Long } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need let
? we should be able to write as sessionReplayFeatureContext[SESSION_REPLAY_SAMPLE_RATE_KEY] as? Long
and I guess the result should be the same? same for the lines below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah, of course, was a left over from previous implementation
private val sampleRate: Float, | ||
private val rateBasedSampler: Sampler, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is kind of duplication of the same. normally we should be able to get sample rate from rateBasedSampler.getSampleRate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but for that I need to cast the sampler to RateBasedSampler
and I want to avoid that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, getSampleRate
is a method of Sampler
interface, no case is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh ...didn't check that, good one ;)
8cc72eb
to
5416510
Compare
5416510
to
2f00733
Compare
2f00733
to
c0a7f5a
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1611 +/- ##
===========================================
+ Coverage 83.63% 83.68% +0.05%
===========================================
Files 451 451
Lines 15567 15557 -10
Branches 2318 2317 -1
===========================================
Hits 13018 13018
+ Misses 1930 1915 -15
- Partials 619 624 +5
|
What does this PR do?
In this PR we are adding the information for the Session Replay feature configuration in our related Telemetry event.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)