Skip to content

RUM-10242: Add AccountInfo data class and provider#2696

Merged
ambushwork merged 1 commit into
feature/account-infofrom
yl/account-info/add-entity
Jun 5, 2025
Merged

RUM-10242: Add AccountInfo data class and provider#2696
ambushwork merged 1 commit into
feature/account-infofrom
yl/account-info/add-entity

Conversation

@ambushwork

@ambushwork ambushwork commented Jun 4, 2025

Copy link
Copy Markdown
Member

What does this PR do?

  • Add AccountInfo data class
  • Add DatadogAccountInfoProvider and MutableAccountInfoProvider

Notice: We don't add serialiser and deserialiser for AccountInfo as UserInfo because we don't need to persist it for crash report since it will be removed in V3 soon.

Motivation

RUM-10242

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)

@ambushwork
ambushwork force-pushed the yl/account-info/add-entity branch from 6302757 to ea9e851 Compare June 4, 2025 08:15
@ambushwork ambushwork changed the title RUM-10242: Add AccountInfo data class and serializer&deserializer RUM-10242: Add AccountInfo data class and provider Jun 4, 2025
@ambushwork
ambushwork changed the base branch from develop to feature/account-info June 4, 2025 08:16
@ambushwork
ambushwork force-pushed the yl/account-info/add-entity branch from ea9e851 to 4bf0ee4 Compare June 4, 2025 09:22
@codecov-commenter

codecov-commenter commented Jun 4, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.90%. Comparing base (072d162) to head (4dfa69d).

Files with missing lines Patch % Lines
...ore/internal/account/DatadogAccountInfoProvider.kt 80.95% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           feature/account-info    #2696      +/-   ##
========================================================
- Coverage                 69.96%   69.90%   -0.05%     
========================================================
  Files                       822      824       +2     
  Lines                     30711    30735      +24     
  Branches                   5170     5172       +2     
========================================================
  Hits                      21484    21484              
- Misses                     7786     7792       +6     
- Partials                   1441     1459      +18     
Files with missing lines Coverage Δ
...lin/com/datadog/android/api/context/AccountInfo.kt 100.00% <100.00%> (ø)
...ore/internal/account/DatadogAccountInfoProvider.kt 80.95% <80.95%> (ø)

... and 38 files with indirect coverage changes

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

@ambushwork
ambushwork marked this pull request as ready for review June 4, 2025 10:00
@ambushwork
ambushwork requested review from a team as code owners June 4, 2025 10:00
@aleksandr-gringauz

Copy link
Copy Markdown
Contributor

we don't need to persist it for crash report since it will be removed in V3 soon.

could you please explain what exactly will be removed?

@ambushwork

Copy link
Copy Markdown
Member Author

we don't need to persist it for crash report since it will be removed in V3 soon.

could you please explain what exactly will be removed?

@aleksandr-gringauz here is the explanation from Xavier:

In v3, crash reports will only be forwarded to RUM, and won't be forwarded to Logs anymore. Meaning that the user info will be retrieved from the existing "lastViewEvent" persisted in RUM

@ambushwork
ambushwork merged commit 087b9cd into feature/account-info Jun 5, 2025
@ambushwork
ambushwork deleted the yl/account-info/add-entity branch June 5, 2025 07:30
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