sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Add option to mask widgets by package name

Open markushi opened this issue 6 months ago • 2 comments

:scroll: Description

Extends SentryReplayOptions to allow package names for masking.

:bulb: Motivation and Context

Implements https://github.com/getsentry/sentry-java/issues/4393

:green_heart: How did you test it?

Added tests

:pencil: Checklist

  • [ ] I added tests to verify the changes.
  • [ ] No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • [ ] I updated the docs if needed.
  • [ ] I updated the wizard if needed.
  • [ ] Review from the native team if needed.
  • [ ] No breaking change or entry added to the changelog.
  • [ ] No breaking change for hybrid SDKs or communicated to hybrid SDKs.

:crystal_ball: Next steps

markushi avatar Jul 14 '25 05:07 markushi

Fails
:no_entry_sign: Please consider adding a changelog entry for the next release.
Messages
:book: Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Add option to mask widgets by package name ([#4553](https://github.com/getsentry/sentry-java/pull/4553))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by :no_entry_sign: dangerJS against 9dd6fec9ee3b87c7663c976f5c06dbb0497916ab

github-actions[bot] avatar Jul 14 '25 05:07 github-actions[bot]

Performance metrics :rocket:

  Plain With Sentry Diff
Startup time 404.96 ms 424.84 ms 19.89 ms
Size 1.58 MiB 2.09 MiB 519.54 KiB

Previous results on branch: feat/session-replay-package-wildcard-masking

Startup times

Revision Plain With Sentry Diff
e10da9705fdbed2ac430c64e7aa3524328aead50 474.30 ms 530.52 ms 56.22 ms

App size

Revision Plain With Sentry Diff
e10da9705fdbed2ac430c64e7aa3524328aead50 1.58 MiB 2.09 MiB 519.45 KiB

github-actions[bot] avatar Jul 14 '25 06:07 github-actions[bot]