Skip to content

RUM-985 Add sampler to WebViewLogEventConsumer#1629

Merged
xgouchet merged 3 commits into
developfrom
xgouchet/RUM-985/4_use_sampling_webview_logs
Sep 21, 2023
Merged

RUM-985 Add sampler to WebViewLogEventConsumer#1629
xgouchet merged 3 commits into
developfrom
xgouchet/RUM-985/4_use_sampling_webview_logs

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

Add a setting to set the logs sample rate for Webview Logs integration

@xgouchet
xgouchet requested a review from a team as a code owner September 20, 2023 07:01
Base automatically changed from xgouchet/RUM-985/3_fix_webview_sample_app to xgouchet/RUM-985/2_use_native_sampling_webview_rum September 20, 2023 08:32
@xgouchet
xgouchet force-pushed the xgouchet/RUM-985/4_use_sampling_webview_logs branch from 038794d to 16ecf7c Compare September 20, 2023 09:06
Base automatically changed from xgouchet/RUM-985/2_use_native_sampling_webview_rum to develop September 20, 2023 09:11
@xgouchet
xgouchet requested a review from 0xnm September 20, 2023 09:46
@codecov-commenter

codecov-commenter commented Sep 20, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1629 (249896d) into develop (2063bf5) will increase coverage by 0.05%.
Report is 10 commits behind head on develop.
The diff coverage is 94.12%.

❗ Current head 249896d differs from pull request most recent head 1ede773. Consider uploading reports for the commit 1ede773 to get more accurate results

@@             Coverage Diff             @@
##           develop    #1629      +/-   ##
===========================================
+ Coverage    83.59%   83.64%   +0.05%     
===========================================
  Files          452      452              
  Lines        15664    15675      +11     
  Branches      2330     2332       +2     
===========================================
+ Hits         13093    13110      +17     
+ Misses        1952     1938      -14     
- Partials       619      627       +8     
Files Changed Coverage Δ
...id/webview/internal/log/WebViewLogEventConsumer.kt 81.33% <88.89%> (+0.78%) ⬆️
...lin/com/datadog/android/webview/WebViewTracking.kt 90.00% <100.00%> (+1.11%) ⬆️

... and 17 files with indirect coverage changes

@xgouchet
xgouchet requested a review from ncreated September 20, 2023 09:46
mariusc83
mariusc83 previously approved these changes Sep 21, 2023
jonathanmos
jonathanmos previously approved these changes Sep 21, 2023
Comment thread build.gradle.kts Outdated
0xnm
0xnm previously approved these changes Sep 21, 2023
internal val userLogsWriter: DataWriter<JsonObject>,
private val rumContextProvider: WebViewRumEventContextProvider
private val rumContextProvider: WebViewRumEventContextProvider,
private val sampleRate: Float

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.

It seems we don't need it even as a property if I'm not wrong.

Suggested change
private val sampleRate: Float
sampleRate: Float

@xgouchet
xgouchet merged commit 8b37d30 into develop Sep 21, 2023
@xgouchet
xgouchet deleted the xgouchet/RUM-985/4_use_sampling_webview_logs branch September 21, 2023 14:08
@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.

6 participants