Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js
) in your SDK setup.
@sentry/angular
SDK Version
7.37.1
Framework Version
"@sentry/angular": "7.37.1",
Link to Sentry event
SDK Setup
Sentry.init({
dns: myDNS,
// set to 1 so once we add the integration, it will def. be sampled
replaysSessionSampleRate: 1,
replaysOnErrorSampleRate: 1,
integrations: []; // not added here
});
// enableReplay for example from variable from server
async function toggleReplay(enableReplay){
const client: Client | undefined = Sentry.getCurrentHub().getClient();
if (!client) {
return;
}
const existingReplay = client.getIntegration(Replay);
if (enableReplay) {
if (existingReplay) {
return;
}
const replay = new Replay();
client.addIntegration(replay);
} else {
if (existingReplay) {
await replay.flush();
replay.stop();
}
}
}
Steps to Reproduce
- add sentry-mask css class to input with ngModel or/and to div wrapper
- change input
- see your session
Expected Result
Privacy data should have mask after initialization Sentry and after changes
Actual Result
after Sentry init we see mask "*" but after changes we see original text, class did not removed from input/div
(sentry-ignore the same, only sentry-block works as expected)
Pls recheck from your side