Skip to content

Mask only the shopper's name and email in session replay - #6

Merged
sergical merged 1 commit into
mainfrom
replay-mask-pii
Sep 24, 2026
Merged

sergical merged 1 commit into
mainfrom
replay-mask-pii

Conversation

@sergical

Copy link
Copy Markdown
Member

The lab 2 solution called replayIntegration() with its defaults, so every text node in the replay was masked and the lab 3 replay could not show the apology the user saw.

  • instrumentation-client.ts in the solution patch now sets maskAllText, maskAllInputs, and blockAllMedia to false.
  • The account card marks the shopper's name and email with data-sentry-mask, which stays masked because it is in the default mask selector list.
  • The lab 2 prompt (PROMPTS.md and labs/02) asks for the same behaviour, so an attendee's agent and the solution patch agree.
  • The solution README lists the new file.

Verified: git apply --check of the regenerated patch on main passes, and tsc --noEmit on the patched app exits 0.

Created with Claude Code

The lab 2 solution used replayIntegration() with its defaults, which
masks every text node, so the lab 3 replay could not show the apology
the user saw. Replay now records page text, inputs, and images as
rendered; the account card marks the shopper's name and email with
data-sentry-mask, which stays masked when maskAllText is off. The lab 2
prompt asks for the same behaviour so an attendee's agent and the
solution patch agree.

Co-authored-by: Claude <claude@anthropic.com>
@sergical
sergical merged commit e170c3a into main Sep 24, 2026
5 of 6 checks passed
@sergical
sergical deleted the replay-mask-pii branch September 24, 2026 11:12
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.

1 participant