Package io.sentry

Class MainEventProcessor

java.lang.Object
io.sentry.MainEventProcessor
All Implemented Interfaces:
EventProcessor, Closeable, AutoCloseable

@Internal public final class MainEventProcessor extends Object implements EventProcessor, Closeable
  • Constructor Details

    • MainEventProcessor

      public MainEventProcessor(@NotNull @NotNull SentryOptions options)
  • Method Details

    • process

      @NotNull public @NotNull SentryEvent process(@NotNull @NotNull SentryEvent event, @NotNull @NotNull Hint hint)
      Description copied from interface: EventProcessor
      May mutate or drop a SentryEvent
      Specified by:
      process in interface EventProcessor
      Parameters:
      event - the SentryEvent
      hint - the Hint
      Returns:
      the event itself, a mutated SentryEvent or null
    • process

      @NotNull public @NotNull SentryTransaction process(@NotNull @NotNull SentryTransaction transaction, @NotNull @NotNull Hint hint)
      Description copied from interface: EventProcessor
      May mutate or drop a SentryTransaction
      Specified by:
      process in interface EventProcessor
      Parameters:
      transaction - the SentryTransaction
      hint - the Hint
      Returns:
      the event itself, a mutated SentryTransaction or null
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException