Package io.sentry

Class MainEventProcessor

  • All Implemented Interfaces:
    EventProcessor, java.io.Closeable, java.lang.AutoCloseable

    @Internal
    public final class MainEventProcessor
    extends java.lang.Object
    implements EventProcessor, java.io.Closeable
    • Method Detail

      • process

        @NotNull
        public @NotNull SentryEvent process​(@NotNull
                                            @NotNull SentryEvent event,
                                            @Nullable
                                            @Nullable java.lang.Object 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,
                                                  @Nullable
                                                  @Nullable java.lang.Object 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 java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException