-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Android observability session replay masking support #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…lay GraphQL API Service
...rvability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
Show resolved
Hide resolved
...vability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
Outdated
Show resolved
Hide resolved
...rvability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
Outdated
Show resolved
Hide resolved
agrognetti
approved these changes
Oct 30, 2025
e2e/android/app/src/main/java/com/example/androidobservability/SecondaryActivity.kt
Outdated
Show resolved
Hide resolved
...rvability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
Outdated
Show resolved
Hide resolved
...rvability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
Show resolved
Hide resolved
...rvability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
Show resolved
Hide resolved
...rvability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
Show resolved
Hide resolved
...vability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
Show resolved
Hide resolved
...vability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
Outdated
Show resolved
Hide resolved
...vability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
Outdated
Show resolved
Hide resolved
...vability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
Outdated
Show resolved
Hide resolved
...vability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
Show resolved
Hide resolved
agrognetti
reviewed
Oct 30, 2025
...rvability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
Outdated
Show resolved
Hide resolved
abelonogov-ld
approved these changes
Oct 30, 2025
Merged
tanderson-ld
pushed a commit
that referenced
this pull request
Oct 31, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>launchdarkly-observability-android: 0.13.0</summary> ## [0.13.0](launchdarkly-observability-android-0.12.0...launchdarkly-observability-android-0.13.0) (2025-10-31) ### Features * Android observability session replay masking support ([#276](#276)) ([c34670b](c34670b)) * O11Y-677 - Add session.id to all metrics ([#279](#279)) ([1927107](1927107)) </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 observability SDK 0.13.0 with session replay masking and session.id on all metrics, updating manifest and gradle version. > > - **Release: Android observability SDK `sdk/@launchdarkly/observability-android` v0.13.0** > - Adds session replay masking support. > - Adds `session.id` to all metrics. > - **Version updates**: > - `.release-please-manifest.json` and `sdk/@launchdarkly/observability-android/gradle.properties` set to `0.13.0`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 238bdbd. 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds masking, PrivacyOptions for customizing masking.
How did you test this change?
Bench testing mostly, we have a future story for e2e tests.
Note
Adds configurable session replay masking using PrivacyProfile/MaskMatcher and applies masking during capture; updates sample app to showcase sensitive inputs.
PrivacyProfile(configurable masking for text inputs, text, sensitive views) andMaskMatcherinterface; convert profile to matcher list viaasMatchersList().CaptureSourcenow accepts matcher list, syncs withChoreographer, traverses Compose semantics viaunmergedRootSemanticsNode, computes sensitive rects, and masks them (Color.GRAY) before encoding; removes enum-based privacy and ad-hoc sensitivity check.ReplayInstrumentationpassesoptions.privacyProfile.asMatchersList()toCaptureSource.ReplayOptionsdefaultsprivacyProfiletoPrivacyProfile().ReplayInstrumentationwithReplayOptions(privacyProfile = PrivacyProfile(maskText = false))inBaseApplication.SecondaryActivityUI with a form containing password, address, and credit card fields to exercise masking.Written by Cursor Bugbot for commit ea12d8c. This will update automatically on new commits. Configure here.