Skip to content

Conversation

fuzzybinary
Copy link
Member

What does this PR do?

RUM supports tracking users anonymously through an anonymous user id. Other platforms add this id to the usr attribute in logs, but Android currently does not, so this adds support for it.

Motivation

When implementing the new User and Account information APIs, Flutter integration tests that were checking for the anonymous user id in logs noticed it was missing.

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)

@fuzzybinary fuzzybinary requested review from a team as code owners October 15, 2025 18:36
@fuzzybinary fuzzybinary force-pushed the jward/anonymous-id-on-logs branch from 3cf7ee6 to 2a0b44a Compare October 15, 2025 19:37
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Oct 15, 2025

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 70.84% (-0.04%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 514fcec | Docs | Was this helpful? Give us feedback!

@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.81%. Comparing base (641c42d) to head (514fcec).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2945      +/-   ##
===========================================
- Coverage    71.02%   70.81%   -0.22%     
===========================================
  Files          829      829              
  Lines        30381    30382       +1     
  Branches      5183     5183              
===========================================
- Hits         21578    21513      -65     
- Misses        7347     7403      +56     
- Partials      1456     1466      +10     
Files with missing lines Coverage Δ
...android/log/internal/domain/DatadogLogGenerator.kt 97.92% <100.00%> (+0.01%) ⬆️

... and 42 files with indirect coverage changes

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

@fuzzybinary fuzzybinary force-pushed the jward/anonymous-id-on-logs branch from 2a0b44a to 32fb2b1 Compare October 15, 2025 20:31
0xnm
0xnm previously approved these changes Oct 16, 2025
import fr.xgouchet.elmyr.junit5.ForgeExtension
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.RepeatedTest
Copy link
Member

Choose a reason for hiding this comment

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

seems like unused import

}

@Test
@Test()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@Test()
@Test

import fr.xgouchet.elmyr.junit5.ForgeExtension
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.RepeatedTest
Copy link
Contributor

Choose a reason for hiding this comment

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

unused import?

RUM supports tracking users anonymously through an anonymous user id. Other platforms add this id to the `usr` attribute in logs, but Android currently does not, so this adds support for it.
@fuzzybinary fuzzybinary dismissed stale reviews from aleksandr-gringauz and 0xnm via 514fcec October 16, 2025 13:23
@fuzzybinary fuzzybinary force-pushed the jward/anonymous-id-on-logs branch from 32fb2b1 to 514fcec Compare October 16, 2025 13:23
@fuzzybinary fuzzybinary merged commit 05df7a3 into develop Oct 16, 2025
25 checks passed
@fuzzybinary fuzzybinary deleted the jward/anonymous-id-on-logs branch October 16, 2025 16:38
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