Package io.sentry

Interface EventProcessor

All Known Subinterfaces:
BackfillingEventProcessor
All Known Implementing Classes:
ContextTagsEventProcessor, ContextTagsEventProcessor, DeduplicateMultithreadedEventProcessor, DuplicateEventDetectionEventProcessor, MainEventProcessor, OpenTelemetryLinkErrorEventProcessor, SentryRequestHttpServletRequestProcessor, SentryRequestHttpServletRequestProcessor

public interface EventProcessor
An Event Processor that may mutate or drop an event. Runs for SentryEvent or SentryTransaction
  • Method Details

    • process

      @Nullable default @Nullable SentryEvent process(@NotNull @NotNull SentryEvent event, @NotNull @NotNull Hint hint)
      May mutate or drop a SentryEvent
      Parameters:
      event - the SentryEvent
      hint - the Hint
      Returns:
      the event itself, a mutated SentryEvent or null
    • process

      @Nullable default @Nullable SentryTransaction process(@NotNull @NotNull SentryTransaction transaction, @NotNull @NotNull Hint hint)
      May mutate or drop a SentryTransaction
      Parameters:
      transaction - the SentryTransaction
      hint - the Hint
      Returns:
      the event itself, a mutated SentryTransaction or null