Package io.sentry
Interface SentryOptions.BeforeSendReplayCallback
- Enclosing class:
- SentryOptions
public static interface SentryOptions.BeforeSendReplayCallback
The BeforeSendReplay callback
-
Method Summary
Modifier and TypeMethodDescription@Nullable SentryReplayEvent
execute
(@NotNull SentryReplayEvent event, @NotNull Hint hint) Mutate or drop a replay event before being sent.
-
Method Details
-
execute
@Nullable @Nullable SentryReplayEvent execute(@NotNull @NotNull SentryReplayEvent event, @NotNull @NotNull Hint hint) Mutate or drop a replay event before being sent. Note that there might be many replay events for a single replay (i.e. segments), you can checkSentryReplayEvent.getReplayId()
to identify that the segments belong to the same replay.- Parameters:
event
- the eventhint
- the hint, containsReplayRecording
, can be accessed viaHint.getReplayRecording()
- Returns:
- the original event or the mutated event or null if event was dropped
-