sentry-java
sentry-java copied to clipboard
Add ability to wild card masks in Session Replay
Problem Statement
We use a third party to render PDFs within our app and launch it via a Fragment they control. We don't know exactly what view classes they use to display things and would like to block everything. We'd like the ability to mask a package name with a wild card.
Solution Brainstorm
Similar to the addMaskViewClass, we'd like some function like:
public void addMaskPackage(final @NotNull String packageName)
And we could provide com.thirdparty.* and any view in the hierarchy with this package would be masked.
@chris-mitchell thanks for the issue, this makes sense! I'm thinking if we should rather provide a way to set a RegExp to avoid the need in multiple options
Let's ensure we consider other SDKs here as well.