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

Add ability to wild card masks in Session Replay

Open chris-mitchell opened this issue 8 months ago • 2 comments

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 avatar May 12 '25 21:05 chris-mitchell

@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

romtsn avatar May 13 '25 09:05 romtsn

Let's ensure we consider other SDKs here as well.

markushi avatar May 14 '25 12:05 markushi