Class SpringProfilesEventProcessor

java.lang.Object
io.sentry.spring.SpringProfilesEventProcessor
All Implemented Interfaces:
EventProcessor

public final class SpringProfilesEventProcessor extends Object implements EventProcessor
Attaches the list of active Spring profiles (an empty list if only the default profile is active) to the TraceContext associated with the event.
  • Constructor Details

    • SpringProfilesEventProcessor

      public SpringProfilesEventProcessor(@NotNull @NotNull Environment environment)
  • 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
    • process

      @NotNull public @NotNull SentryReplayEvent process(@NotNull @NotNull SentryReplayEvent 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