Skip to content

RUM-985 Only send Webview RUM events when Native Session exists and is tracked#1626

Merged
xgouchet merged 3 commits into
developfrom
xgouchet/RUM-985/2_use_native_sampling_webview_rum
Sep 20, 2023
Merged

RUM-985 Only send Webview RUM events when Native Session exists and is tracked#1626
xgouchet merged 3 commits into
developfrom
xgouchet/RUM-985/2_use_native_sampling_webview_rum

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

The rule is that a browser RUM session should be tracked as part of the host application's session. This means that if the native session is not tracked, or if the RUM feature is not enabled, then the webview RUM events should be dropped.

@xgouchet
xgouchet requested a review from a team as a code owner September 19, 2023 17:12
0xnm
0xnm previously approved these changes Sep 20, 2023
@codecov-commenter

codecov-commenter commented Sep 20, 2023

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Project coverage is 83.73%. Comparing base (6464702) to head (49dfa8d).
Report is 2014 commits behind head on develop.

Files with missing lines Patch % Lines
...iew/internal/rum/WebViewRumEventContextProvider.kt 25.00% 0 Missing and 3 partials ⚠️
...id/webview/internal/rum/WebViewRumEventConsumer.kt 66.67% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1626      +/-   ##
===========================================
+ Coverage    83.67%   83.73%   +0.06%     
===========================================
  Files          452      452              
  Lines        15660    15667       +7     
  Branches      2327     2331       +4     
===========================================
+ Hits         13102    13118      +16     
+ Misses        1937     1930       -7     
+ Partials       621      619       -2     
Files with missing lines Coverage Δ
.../android/webview/internal/rum/domain/RumContext.kt 100.00% <100.00%> (ø)
...id/webview/internal/rum/WebViewRumEventConsumer.kt 80.56% <66.67%> (-1.13%) ⬇️
...iew/internal/rum/WebViewRumEventContextProvider.kt 70.00% <25.00%> (-18.89%) ⬇️

... and 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

mariusc83
mariusc83 previously approved these changes Sep 20, 2023

@mariusc83 mariusc83 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from xgouchet/RUM-985/1_propagate_rum_context_as_string to develop September 20, 2023 08:32
@xgouchet
xgouchet dismissed stale reviews from mariusc83 and 0xnm September 20, 2023 08:32

The base branch was changed.

…sample_app

RUM-985 fix the WebView fragment in sample app
@xgouchet
xgouchet requested review from 0xnm and mariusc83 September 20, 2023 08:33
@xgouchet
xgouchet merged commit a0a0c47 into develop Sep 20, 2023
@xgouchet
xgouchet deleted the xgouchet/RUM-985/2_use_native_sampling_webview_rum branch September 20, 2023 09:11
@xgouchet xgouchet added this to the 2.2.0 milestone Dec 13, 2023
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