Skip to content

Conversation

@pranjal-jately-ld
Copy link
Contributor

@pranjal-jately-ld pranjal-jately-ld commented Nov 30, 2025

Add observability and Session Replay integration to the toolbar's internal LaunchDarkly client. Session Replay is controlled via a feature flag.

Description

This PR adds Session Replay capabilities to the Developer Toolbar, enabling observability.

What does this PR do?

Integrates LaunchDarkly's Session Replay plugin into the toolbar's internal client, controlled by a feature flag. Session Replay runs only in the toolbar's internal LaunchDarkly client context and uses the 'default' privacy setting.

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation (changes to documentation only)
  • 🔧 Refactor (code change that neither fixes a bug nor adds a feature)
  • 🎨 Style (formatting, missing semicolons, etc; no production code change)
  • Performance (code change that improves performance)
  • Test (adding missing tests, refactoring tests; no production code change)
  • 🔨 Chore (updating grunt tasks, build process, etc; no production code change)

Screenshots/Videos



Related Jira issue: REL-10964: Add Session Replay capabilities to the Developer Toolbar

@launchdarkly-upra launchdarkly-upra bot changed the title feat: add Session Replay capabilities to Toolbar feat: [REL-10964] add Session Replay capabilities to Toolbar Nov 30, 2025
Copy link
Contributor

@nieblara nieblara left a comment

Choose a reason for hiding this comment

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

Things are looking cool here!

@nieblara
Copy link
Contributor

nieblara commented Dec 2, 2025

the session replay lib might be too new for the version of the sdk we have right now!

@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10964-session-replay branch from d4008ce to 5557a38 Compare December 5, 2025 15:10
@pranjal-jately-ld
Copy link
Contributor Author

the session replay lib might be too new for the version of the sdk we have right now!

I tried to find docs to check this and even looked into the source code but couldn't find anything to indicate this 🤔 Is there somewhere you read/saw this that you could share?

Add observability and Session Replay integration to the toolbar's
internal LaunchDarkly client. Session Replay is controlled via a
feature flag.
@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10964-session-replay branch from 5557a38 to 8783e6e Compare December 7, 2025 17:07
- Move session replay flag key to a constant
@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10964-session-replay branch from 8783e6e to 715d7fb Compare December 8, 2025 12:08
- Added '@launchdarkly/observability' dependency to the project.
- Updated InternalClientProvider to initialize and manage Observability
alongside Session Replay.
- Refactored telemetry handling to include observability monitoring.
@pranjal-jately-ld pranjal-jately-ld marked this pull request as ready for review December 8, 2025 18:15
@pranjal-jately-ld pranjal-jately-ld requested a review from a team as a code owner December 8, 2025 18:15
Copy link
Contributor

@cspath1 cspath1 left a comment

Choose a reason for hiding this comment

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

Super excited to have this ready to go!

privacySetting: 'default',
...(backendUrl && { backendUrl }),
// Block everything except the toolbar's shadow DOM
blockSelector: 'body > *:not(#ld-toolbar)',
Copy link
Contributor

Choose a reason for hiding this comment

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

So happy we are able to utilize this!

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