Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Allow us to call `setUserInfo` without completely wiping all previously set properties set by `addUserProperties`

Open
#2,132 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start with the linked implementation in dd-sdk-android-core/src/main/kotlin/com/datadog/android/core/internal/user/DatadogUserInfoProvider.kt, especially the lines that clear existing attributes. Trace how setUserInfo and addUserProperties interact, then verify that setting user identity no longer removes previously added properties; the issue’s requested behavior should be covered by regression tests.

Written by the indexing model from the issue text.

Description

enhancement
Feature description

My use case is that I have independent sources for where some of my attributes come, and where my ID comes from. Whenever each one of those change, I used to call Datadog.getInstance().addUserProperties().
Now I wanted to start using setUserInfo to set my ID, only to realize that this then simply clears (here) the previously set attributes.

Proposed solution

I would need one of the two options:

  • Provide a way to grab the existing attributes, so that I can grab them, and then call setUserProperties(id, ..., grabbedAttributes) to set the ID and re-set the attributes too
  • Provide a way for me to set the user info without clearing the extra properties as a hidden side-effect
Other relevant information

No response

Dominant language
Kotlin
Stars
226
Forks
86
Avg merge
1d 12h
Merged PRs (30d)
65

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataDog/dd-sdk-android

All issues in DataDog/dd-sdk-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.