Skip to content

[RUM-11289][FO]: supporting user debug logs#2819

Merged
satween merged 2 commits into
feature/featureoperationsfrom
tvaleev/feature/RUM-11289
Aug 14, 2025
Merged

[RUM-11289][FO]: supporting user debug logs#2819
satween merged 2 commits into
feature/featureoperationsfrom
tvaleev/feature/RUM-11289

Conversation

@satween

@satween satween commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

Supports debug logs for FO methods.

Motivation

Logs aimed to help customers check the correctness of integration.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@satween
satween requested review from a team as code owners August 13, 2025 13:56
@satween satween changed the title RUM-11289: supporting user debug logs [RUM-11289]: FO supporting user debug logs Aug 13, 2025
@satween satween changed the title [RUM-11289]: FO supporting user debug logs [RUM-11289] FO: supporting user debug logs Aug 13, 2025
0xnm
0xnm previously approved these changes Aug 13, 2025
reportTelemetry { FO_TELEMETRY_FAILED_MESSAGE }
}

private fun logToUser(messageProvider: () -> String) {

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.

very minor nit:

Suggested change
private fun logToUser(messageProvider: () -> String) {
private fun logDebugToUser(messageProvider: () -> String) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Bit refactored to use for whole class. The method accepts log level now

eventTime = getEventTime(attributes)
)
)
logToUser { "Feature Operation `$name` (operationKey `$operationKey`) was started." }

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.

I'm not the native speaker, but I would suggest to remove was here and below. Like operation started, operation successfully ended.

It is quite common to use such simpler form in log messages.

pinging @fuzzybinary / @awforsythe for the input

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mariedm mariedm Aug 14, 2025

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.

I agree, I can update on the iOS side

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

let's update then

@satween
satween force-pushed the tvaleev/feature/RUM-11289 branch from e7803bf to 49f23a5 Compare August 14, 2025 12:04
@satween
satween changed the base branch from tvaleev/feature/RUM-11253 to feature/featureoperations August 14, 2025 12:05
@satween
satween dismissed 0xnm’s stale review August 14, 2025 12:05

The base branch was changed.

@codecov-commenter

codecov-commenter commented Aug 14, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.11%. Comparing base (2ee8354) to head (49f23a5).
⚠️ Report is 406 commits behind head on feature/featureoperations.

Files with missing lines Patch % Lines
.../android/rum/internal/monitor/DatadogRumMonitor.kt 81.25% 3 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           feature/featureoperations    #2819      +/-   ##
=============================================================
+ Coverage                      69.99%   70.11%   +0.12%     
=============================================================
  Files                            835      835              
  Lines                          31412    31418       +6     
  Branches                        5272     5272              
=============================================================
+ Hits                           21985    22027      +42     
+ Misses                          7928     7916      -12     
+ Partials                        1499     1475      -24     
Files with missing lines Coverage Δ
.../android/rum/internal/monitor/DatadogRumMonitor.kt 86.52% <81.25%> (+0.52%) ⬆️

... and 34 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 requested a review from 0xnm August 14, 2025 13:36
@satween
satween merged commit be1c994 into feature/featureoperations Aug 14, 2025
24 checks passed
@satween
satween deleted the tvaleev/feature/RUM-11289 branch August 14, 2025 14:05
@satween satween changed the title [RUM-11289] FO: supporting user debug logs [RUM-11289][FO]: supporting user debug logs Aug 25, 2025
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