Skip to content
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

Allow masking PII #426

Closed
bcaudan opened this issue Jun 18, 2020 · 2 comments
Closed

Allow masking PII #426

bcaudan opened this issue Jun 18, 2020 · 2 comments
Labels

Comments

@bcaudan
Copy link
Contributor

bcaudan commented Jun 18, 2020

Currently PII can be sent with some of the collected data:

  • url
  • error message / stack
  • user action name

Add a way to mask them for both logs and rum SDK.

@csancs
Copy link

csancs commented Jul 13, 2020

Just wanted to add a thumbs up, currently the lack of this feature is blocking us from using rum 😞

@hdelaby
Copy link
Contributor

hdelaby commented Dec 22, 2020

You now have access to the beforeSend scrubbing API starting with v2.1.0 of the Browser SDK. See how to use it in the documentation but if you really can't wait, here's an example:

window.DD_RUM &&
    window.DD_RUM.init({
        ...,
        beforeSend: (event) => {
            // remove email from view url
            event.view.url = event.view.url.replace(/email=[^&]*/, "email=REDACTED")
        },
        ...
    });

Thank you for your patience and let us know what you think about it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants