Skip to content

Document RUM user context integration for client SDKs - #39000

Draft
leoromanovsky wants to merge 5 commits into
masterfrom
leo.romanovsky/rum-user-context-docs
Draft

Document RUM user context integration for client SDKs#39000
leoromanovsky wants to merge 5 commits into
masterfrom
leo.romanovsky/rum-user-context-docs

Conversation

@leoromanovsky

@leoromanovsky leoromanovsky commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Motivation

Client Feature Flags SDKs that integrate with RUM can reuse the RUM user as default evaluation context. The shared client documentation needs to explain attribute mapping, precedence, initialization order, and user lifecycle updates without duplicating the behavior across individual SDK guides.

Changes

  • Add a concise Use RUM user context for evaluation section to the client Feature Flags landing page.
  • Document targeting-key mapping, primitive attribute filtering, application-context precedence, and nested-value exclusion.
  • Explain initialization and context reconciliation after login, logout, or account changes.
  • Cover the shared behavior across Web, Android, Dart/Flutter, iOS, React Native, and Unity.

Decisions

  • Keep the cross-client contract on the existing client landing page instead of introducing a separate page or navigation item.
  • Describe user updates through each platform's RUM API and context reconciliation through its Feature Flags API.
  • Avoid platform-specific method names so additional client SDKs fit the same contract.

Verification

  • Vale 3.9.1 reports no new findings on the changed section.
  • git diff --check passed.
  • Repository alias, generated-content tracking, and section-index checks passed.

Merge readiness

  • Ready for merge

AI assistance

Used Codex to inspect the client implementation behavior, draft the shared contract, and run documentation validation. The content was reviewed against the implementation behavior before publication.

Additional notes

Related implementations:

@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label Aug 7, 2026
@github-actions github-actions Bot removed the Architecture Everything related to the Doc backend label Aug 7, 2026
@leoromanovsky
leoromanovsky marked this pull request as ready for review August 7, 2026 15:47
@leoromanovsky
leoromanovsky requested a review from a team as a code owner August 7, 2026 15:47
@leoromanovsky

Copy link
Copy Markdown
Contributor Author

/review

@leoromanovsky
leoromanovsky requested a review from btthomas August 7, 2026 15:48
@leoromanovsky
leoromanovsky marked this pull request as draft August 7, 2026 15:48

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 Automated review by Claude. AI-generated; verify before acting.

One minor consistency nit on platform naming. Otherwise the new section reads clearly.

Reviewed f3ebb3dc827eb74da0fb52b18a3ca90d2dc94bfeworkflow run

Comment thread hugo/content/en/feature_flags/client/_index.md Outdated
Comment thread hugo/content/en/feature_flags/client/_index.md Outdated
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@jhgilbert jhgilbert added the astro-reorg-no-conflicts Needs manual conflict resolution after replatforming reorg label Aug 7, 2026
- Fields explicitly supplied through the application evaluation context take precedence over fields from the RUM user.

Initialize RUM and set the RUM user before creating the Feature Flags client or provider. This lets the SDK include RUM user attributes in its initial assignment request.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add the following line somewhere:

A field with an undefined value passed to OpenFeature context suppresses the corresponding RUM attribute and is therefor omitted from the effective context used by the flagging evaluator and downstream telemetry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astro-reorg-no-conflicts Needs manual conflict resolution after replatforming reorg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants