Skip to content

Conversation

@abelonogov-ld
Copy link
Contributor

@abelonogov-ld abelonogov-ld commented Dec 17, 2025

Summary

image image

Note

Implements Session Replay identify flow (hooks, exporter, payloads) and updates the sample app to trigger identify events, replacing tracing hook and refactoring replay exporter.

  • Session Replay (SDK):
    • Add SessionReplayHook to emit identify on afterIdentify and wire into SessionReplay plugin.
    • Enhance ReplayInstrumentation to log event.domain (media, interaction, identify), initialize exporter with initial identify payload, and add identifySession(ldContext).
    • Introduce EventDomain, IdentifyItemPayload, and SessionReplayEventGenerator (encapsulates RRWeb event generation incl. Identify custom event).
    • Refactor exporter to SessionReplayExporter with GraphQL SessionReplayApiService (now supports identify via payload); handle identify logs and update identify state.
  • Observability:
    • Rename TracingHook to ObservabilityHook and update usage in Observability.
    • Extend ObservabilityOptions with contextFriendlyName.
  • E2E App (UI/VM):
    • Add Identify buttons (User/Multi/Anon) and corresponding ViewModel methods; style danger buttons.
    • Import SessionReplay from replay.plugin and add app-specific colors.
  • Tests:
    • Update/rename tests to new hook and exporter APIs; add cases for identify flow and canvas buffer limits.

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

Squashed commits:
[7616207c3] pass friendlyname
[c2ea40f22] not working commit
[dbf43731d] initialIdentifyEvent
[34a5a695e] pass identifyEvent
[f7b9b579d] renaming
[f70e8cc3b] move files to exporter package
[7437491dd] remove import
[dd1f0304e] move to generator
[2655f4d09] EventDomain
[b8cf806ca] forgotten file
[18ecebd06] renaming
[922ff7c7a] deleted file
[6fe52728a] Use color constants
[59180cd22] Add hook and buttons
@abelonogov-ld abelonogov-ld requested a review from a team as a code owner December 17, 2025 22:04
Copy link
Contributor

@Vadman97 Vadman97 left a comment

Choose a reason for hiding this comment

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

seems reasonable to me

@abelonogov-ld abelonogov-ld merged commit a421812 into main Dec 17, 2025
22 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/identify branch December 17, 2025 23:00
Vadman97 pushed a commit that referenced this pull request Dec 18, 2025
🤖 I have created a release *beep* *boop*
---


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

##
[0.20.0](launchdarkly-observability-android-0.19.1...launchdarkly-observability-android-0.20.0)
(2025-12-18)


### Features

* Android SR Identify support
([#330](#330))
([a421812](a421812))
* Graphql client memory optimization
([#325](#325))
([f199e2d](f199e2d))
* Gzip compression for Graphql request body
([#328](#328))
([d862a15](d862a15))
* Limit accumulating canvas buffer
([#322](#322))
([72f2592](72f2592))
</details>

<details><summary>observability: 0.4.11</summary>

##
[0.4.11](observability-0.4.10...observability-0.4.11)
(2025-12-18)


### Dependencies

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

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

##
[0.4.11](session-replay-0.4.10...session-replay-0.4.11)
(2025-12-18)


### Dependencies

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

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

##
[9.25.0](highlight.run-9.24.0...highlight.run-9.25.0)
(2025-12-18)


### Features

* sanitize URLs + semantic conventions for header attributes
([#317](#317))
([417b4b8](417b4b8))
</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 Android SDK 0.20.0 with multiple performance/features, bump
highlight.run to 9.25.0, and update web packages
(@launchdarkly/observability, @launchdarkly/session-replay) to 0.4.11
consuming the new dependency.
> 
> - **Releases**:
>   - `sdk/@launchdarkly/observability-android` → `0.20.0`
> - Features: Android SR Identify support, GraphQL client memory
optimizations, Gzip GraphQL request bodies, limit accumulating canvas
buffer.
>   - `sdk/highlight-run` → `9.25.0`
> - Features: URL sanitization + semantic conventions for header
attributes.
>   - `sdk/@launchdarkly/observability` → `0.4.11`
>     - Dependency: `highlight.run` bumped to `9.25.0`.
>   - `sdk/@launchdarkly/session-replay` → `0.4.11`
>     - Dependency: `highlight.run` bumped to `9.25.0`.
> - **Version metadata**:
> - Updated versions in `.release-please-manifest.json`,
`package.json`s, and Android `gradle.properties`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
68d9f0b. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
abelonogov-ld added a commit that referenced this pull request Jan 8, 2026
* main:
  feat: Android SR Identify support  (#330)
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.

3 participants