Class ContextTagsEventProcessor

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

public final class ContextTagsEventProcessor extends Object implements EventProcessor
Attaches context tags defined in SentryOptions.getContextTags() from MDC to SentryBaseEvent.getTags().
  • Constructor Details

    • ContextTagsEventProcessor

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

    • process

      @NotNull public @NotNull SentryEvent process(@NotNull @NotNull SentryEvent event, @Nullable @Nullable 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