Skip to content

Scrub sensitive params from Replay Start #9871

Closed
getsentry/sentry-docs
#9058
@AbhiPrasad

Description

@AbhiPrasad

Discussed in #9865

Originally posted by bapjiws December 15, 2023
Hi everyone,

Not sure if it's the right place to ask this, if not, I would appreciate any advice on where to do so 🙂

We have a mobile app that opens up a web app with a login link containing the login token and the user ID that we would love to filter out -- either from the event data or just skip sending the event itself. I've tried doing that via the beforeAddRecordingEvent hook, and I can filter the contents of the Page Load event, but the Replay Start remains unaffected.

Screenshot 2023-12-15 at 12 16 00

We've also tried adding these two params to "Global Sensitive Fields" in Settings > Security & Privacy > DATA SCRUBBING > Global Sensitive Fields in our project settings, but that doesn't seem to change anything.

Also, the docs mention manually calling the replay.stop() method, but the page that link leads to doesn't have the #start-and-stop-recording anchor 😄 (see getsentry/sentry-docs#8881 instead)

Thanks so much in advance for any help! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: replayIssues related to the Sentry Replay SDK

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions