RUM-8632: Introducing UISlownessMetricDispatcher#2567
Conversation
f16c1a7 to
d58cead
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2567 +/- ##
===========================================
+ Coverage 70.14% 70.17% +0.03%
===========================================
Files 803 804 +1
Lines 30146 30196 +50
Branches 5046 5050 +4
===========================================
+ Hits 21145 21190 +45
+ Misses 7600 7595 -5
- Partials 1401 1411 +10
🚀 New features to boost your workflow:
|
| internal const val KEY_MAX_DURATION = "max_duration" | ||
| internal const val KEY_VIEW_MIN_DURATION = "view_min_duration" | ||
|
|
||
| internal const val KEY_FREEZED_FRAMES = "freezed_frames" |
There was a problem hiding this comment.
Are we sure about the use of "freezed frames" for the plural? I think frozen frames would be more correct
There was a problem hiding this comment.
Yep, I agree. The problem that we already have "frozen" word in many places. I was trying to separate this one from the others. But probably we should stick to the correct word anyway
There was a problem hiding this comment.
We decided to remove frozen frames from the telemetry for now. We gonna add them separately
d58cead to
9151319
Compare
| verify(mockInternalLogger).logMetric( | ||
| argThat { invoke() == DefaultUISlownessMetricDispatcher.UI_SLOWNESS_MESSAGE }, | ||
| argThat { hasExpectedValue(1, KEY_RUM_UI_SLOWNESS, KEY_SLOW_FRAMES, KEY_IGNORED_COUNT) }, | ||
| eq(fakeSamplingRate), | ||
| eq(null) | ||
| ) |
There was a problem hiding this comment.
minor: in case of the failure the error will be generic - something like the method was expected to be called with arguments matching the certain criteria, but it wasn't, and it will take some effort to understand what exactly didn't match (and in this test we are targeting the specific attribute).
We could just use arguments captor to capture attributes and assert them granularly, providing the exact message about the failure reason.
But anyway, this is just minor, I'm okay with such assertion as well.
2c29fcd
What does this PR do?
"RUM UI Slowness" Telemetry support for UI slowness feature
See spec for more details
Review checklist (to be filled by reviewers)