Skip to content

feat(rum): Add common names for user and account calls - #5377

Draft
mormubis wants to merge 1 commit into
mainfrom
adlrb/RUM-20325-common-names-user
Draft

mormubis wants to merge 1 commit into
mainfrom
adlrb/RUM-20325-common-names-user

Conversation

@mormubis

@mormubis mormubis commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Motivation

First PR of a stack that adds the common SDK names from the naming proposal to the Browser SDK. Each new name ships next to the old one, which is deprecated and goes away in v8.

I know CONVENTIONS.md says not to update existing APIs until it's needed. This rename is the exception we agreed on for the next major.

Refs: RUM-20325, RUM-19580

Changes

New names on datadogRum: setUserInfo, getUserInfo, addUserAttribute, removeUserAttribute, clearUserInfo and the same five for the account.

The old names point to the same function, so there is no behavior change. Their TSDoc says @deprecated Use {@link ...} instead. The telemetry usage keys stay the same, because a new key needs a rum-events-format change first.

addUserAttribute and addAccountAttribute replace setUserProperty and setAccountProperty. They are not in the matrix, but otherwise we'd have setUserProperty next to removeUserAttribute.

The rest of the stack follows this pattern, so this is the PR to discuss it. I'd also like to check the bundle size report here.

Test instructions

Run yarn test:unit packages/browser-rum-core/src/boot/rumPublicApi.spec.ts. A table test checks that each old name is the same function as the new one. The context e2e scenario uses the new names.

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

This branch has not been deployed

No deployments
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.

1 participant