Skip to content

Conversation

@ccschmitz-launchdarkly
Copy link
Contributor

@ccschmitz-launchdarkly ccschmitz-launchdarkly commented Sep 29, 2025

Summary

Adds the addSessionProperties method to the Record SDK allowing users to call RecordSDK.addSessionProperties to attach metadata to sessions.

How did you test this change?

Added a new E2E test page in the react router app and sent a session to staging. Note the plan and favoriteColor properties.

image

Are there any deployment considerations?

Need to notify customers waiting on this functionality and open a docs PR.


Note

Introduce addSessionProperties to Record SDK and LDRecord, wiring it to send session-scoped Properties messages; add unit tests and an E2E UI panel to apply properties.

  • SDK:
    • Add Record.addSessionProperties(properties) in sdk/highlight-run/src/api/record.ts.
    • Implement in RecordSDK.addSessionProperties to call addProperties(..., { type: 'session' }) and post a MessageType.Properties message.
    • Add LDRecord.addSessionProperties proxy in sdk/highlight-run/src/sdk/LDRecord.ts.
  • Tests:
    • New record-add-session-properties.test.ts verifies worker posts Properties with { type: 'session' } and that LDRecord proxies correctly.
  • E2E/Demo:
    • Add "Session Properties" panel in e2e/react-router/src/routes/root.tsx to input JSON and call LDRecord.addSessionProperties.

Written by Cursor Bugbot for commit 8d30961. This will update automatically on new commits. Configure here.

@ccschmitz-launchdarkly ccschmitz-launchdarkly changed the title Add addSessionProperties to RecordSDK feat: add addSessionProperties to RecordSDK Sep 29, 2025
@ccschmitz-launchdarkly ccschmitz-launchdarkly marked this pull request as ready for review September 30, 2025 15:06
@ccschmitz-launchdarkly ccschmitz-launchdarkly requested a review from a team as a code owner September 30, 2025 15:06
@ccschmitz-launchdarkly ccschmitz-launchdarkly enabled auto-merge (squash) October 1, 2025 13:11
@ccschmitz-launchdarkly ccschmitz-launchdarkly merged commit 1969e1a into main Oct 1, 2025
24 of 25 checks passed
@ccschmitz-launchdarkly ccschmitz-launchdarkly deleted the O11Y-528-Support-addSessionProperties-in-the-session-replay-plugin branch October 1, 2025 13:11
Vadman97 pushed a commit that referenced this pull request Oct 1, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-observability-android: 0.9.0</summary>

##
[0.9.0](launchdarkly-observability-android-0.8.0...launchdarkly-observability-android-0.9.0)
(2025-10-01)


### Features

* O11Y-398 - Disable config options implemented
([#239](#239))
([3548b42](3548b42))
</details>

<details><summary>observability: 0.4.3</summary>

##
[0.4.3](observability-0.4.2...observability-0.4.3)
(2025-10-01)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * highlight.run bumped to 9.22.0
</details>

<details><summary>session-replay: 0.4.3</summary>

##
[0.4.3](session-replay-0.4.2...session-replay-0.4.3)
(2025-10-01)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * highlight.run bumped to 9.22.0
</details>

<details><summary>highlight.run: 9.22.0</summary>

##
[9.22.0](highlight.run-9.21.1...highlight.run-9.22.0)
(2025-10-01)


### Features

* add addSessionProperties to RecordSDK
([#247](#247))
([1969e1a](1969e1a))
* config options to customize privacy classes and selectors
([#241](#241))
([97c72db](97c72db))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Release new versions across packages, adding highlight.run features
and updating dependents; Android SDK gains a config-disabling feature.
> 
> - **Releases**:
>   - `sdk/highlight-run` → `9.22.0`
> - Features: `addSessionProperties` in Record SDK; configurable privacy
classes/selectors.
>   - `sdk/@launchdarkly/observability-android` → `0.9.0`
>     - Feature: implement disabling of config options.
>   - `sdk/@launchdarkly/observability` → `0.4.3`
>     - Dependency: `highlight.run` bumped to `9.22.0`.
>   - `sdk/@launchdarkly/session-replay` → `0.4.3`
>     - Dependency: `highlight.run` bumped to `9.22.0`.
> - **Version metadata**:
> - Update `package.json`, `gradle.properties`, and
`.release-please-manifest.json` to new versions.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
b1c0517. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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