Package io.sentry

Interface SentryOptions.BeforeSendReplayCallback

Enclosing class:
SentryOptions

public static interface SentryOptions.BeforeSendReplayCallback
The BeforeSendReplay callback
  • Method Summary

    Modifier and Type
    Method
    Description
    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 check SentryReplayEvent.getReplayId() to identify that the segments belong to the same replay.
      Parameters:
      event - the event
      hint - the hint, contains ReplayRecording, can be accessed via Hint.getReplayRecording()
      Returns:
      the original event or the mutated event or null if event was dropped