Skip to content

RUM-9501 Don't send fatal errors to Logs, only send them to RUM#2675

Merged
xgouchet merged 3 commits into
feature/v3from
xgouchet/RUM-9501/remove_error_logs
May 30, 2025
Merged

RUM-9501 Don't send fatal errors to Logs, only send them to RUM#2675
xgouchet merged 3 commits into
feature/v3from
xgouchet/RUM-9501/remove_error_logs

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

let the crash handlers (DatadogExceptionHandler and DatadogNdkCrashHandler) only send errors to RUM

@xgouchet
xgouchet requested review from a team as code owners May 27, 2025 16:36
@xgouchet
xgouchet force-pushed the xgouchet/RUM-9501/remove_error_logs branch from d98f235 to 7741623 Compare May 28, 2025 09:27
@codecov-commenter

codecov-commenter commented May 28, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.55%. Comparing base (9f37c39) to head (ba29caf).
⚠️ Report is 536 commits behind head on feature/v3.

Additional details and impacted files
@@              Coverage Diff               @@
##           feature/v3    #2675      +/-   ##
==============================================
- Coverage       67.86%   67.55%   -0.30%     
==============================================
  Files             821      814       -7     
  Lines           30544    30253     -291     
  Branches         5159     5135      -24     
==============================================
- Hits            20726    20437     -289     
- Misses           8454     8455       +1     
+ Partials         1364     1361       -3     
Files with missing lines Coverage Δ
...com/datadog/android/core/feature/event/JvmCrash.kt 100.00% <ø> (ø)
...n/com/datadog/android/core/internal/CoreFeature.kt 86.31% <100.00%> (-1.05%) ⬇️
...n/com/datadog/android/core/internal/DatadogCore.kt 81.86% <100.00%> (-0.41%) ⬇️
...l/net/info/BroadcastReceiverNetworkInfoProvider.kt 96.88% <ø> (+2.94%) ⬆️
...e/internal/net/info/CallbackNetworkInfoProvider.kt 95.06% <ø> (-0.18%) ⬇️
...roid/core/internal/user/DatadogUserInfoProvider.kt 100.00% <100.00%> (ø)
.../android/error/internal/DatadogExceptionHandler.kt 84.75% <ø> (-2.93%) ⬇️
...dog/android/ndk/internal/DatadogNdkCrashHandler.kt 70.00% <100.00%> (-12.25%) ⬇️
...in/com/datadog/android/log/internal/LogsFeature.kt 89.39% <100.00%> (+3.78%) ⬆️

... and 26 files with indirect coverage changes

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

satween
satween previously approved these changes May 29, 2025

@satween satween left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, but let's have another opinion here, @0xnm's maybe?

@ambushwork

Copy link
Copy Markdown
Member

PR LGTM, but I am curious what's the motivation behind this one? (I don't see it neither in the description nor in the ticket)

ambushwork
ambushwork previously approved these changes May 30, 2025
@ambushwork

Copy link
Copy Markdown
Member

PR LGTM, but I am curious what's the motivation behind this one? (I don't see it neither in the description nor in the ticket)

I see it in V3 scope doc, OK for me

@@ -44,9 +43,6 @@ internal class DatadogNdkCrashHandler(
internal var lastNetworkInfo: NetworkInfo? = null

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.

Probably we can remove lastNetworkInfo and lastUserInfo since they were used only for Logs? We can also remove the part where we write them to the disk.

Comment on lines -298 to -300
val logsFeature = sdkCore.getFeature(Feature.LOGS_FEATURE_NAME)
if (logsFeature != null) {
logsFeature.sendEvent(

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.

we also need to remove related code in the LogsFeature

@xgouchet
xgouchet dismissed stale reviews from ambushwork and satween via 2dce78b May 30, 2025 11:59
0xnm
0xnm previously approved these changes May 30, 2025
@xgouchet
xgouchet force-pushed the xgouchet/RUM-9501/remove_error_logs branch from 2dce78b to ba29caf Compare May 30, 2025 12:48
@xgouchet
xgouchet requested review from 0xnm, ambushwork and satween May 30, 2025 12:48
@xgouchet
xgouchet merged commit 55e2f11 into feature/v3 May 30, 2025
@xgouchet
xgouchet deleted the xgouchet/RUM-9501/remove_error_logs branch May 30, 2025 14:09
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.

5 participants