Skip to content

✨[RUM-14240] Add session manager#3

Merged
bcaudan merged 9 commits into
mainfrom
bcaudan/session-management
Feb 4, 2026
Merged

✨[RUM-14240] Add session manager#3
bcaudan merged 9 commits into
mainfrom
bcaudan/session-management

Conversation

@bcaudan

@bcaudan bcaudan commented Feb 3, 2026

Copy link
Copy Markdown
Collaborator

Motivation

Keep track of the end user session

Changes

  • Add session manager
  • Add @datadog/browser-core as a dependency, in order to reuse some utilities
  • Remove index.spec.ts, in order to not maintain high level integration tests
  • Update playground to show / clear session

Test instructions

  • Session should be created when starting the app
  • Session should be reused between multiple openings of the app
  • Clearing the session file should trigger the creation of a new session on subsequent app opening

Checklist

  • Tested locally
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.

@bcaudan bcaudan requested a review from cdn34dd as a code owner February 3, 2026 15:23
@bcaudan bcaudan force-pushed the bcaudan/session-management branch from 482d416 to 6c226b1 Compare February 3, 2026 16:30

@cdn34dd cdn34dd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Overall looks good, just left a couple of tweaks.

Comment thread docs/DEVELOPMENT.md
Comment thread src/domain/sessionManager.ts
Comment thread playground/src/main.ts Outdated
Comment thread src/domain/sessionManager.ts Outdated
Comment thread src/domain/sessionManager.ts Outdated
Comment thread src/index.ts Outdated
As init is async, avoid partially init object by exposing static start + private constructor
Comment thread src/domain/sessionManager.ts
@bcaudan bcaudan merged commit 8877209 into main Feb 4, 2026
10 checks passed
@bcaudan bcaudan deleted the bcaudan/session-management branch February 4, 2026 14:32
@bcaudan bcaudan mentioned this pull request Mar 26, 2026
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.

2 participants