Package io.sentry
Class MainEventProcessor
java.lang.Object
io.sentry.MainEventProcessor
- All Implemented Interfaces:
EventProcessor,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()@Nullable LonggetOrder()Controls when this EventProcessor is invoked.@NotNull SentryTransactionprocess(@NotNull SentryTransaction transaction, @NotNull Hint hint) May mutate or drop a SentryTransaction@NotNull SentryEventprocess(@NotNull SentryEvent event, @NotNull Hint hint) May mutate or drop a SentryEvent@Nullable SentryLogEventprocess(@NotNull SentryLogEvent event) May mutate or drop a SentryLogEvent@NotNull SentryReplayEventprocess(@NotNull SentryReplayEvent event, @NotNull Hint hint) May mutate or drop a SentryEvent
-
Constructor Details
-
MainEventProcessor
-
-
Method Details
-
process
@NotNull public @NotNull SentryEvent process(@NotNull @NotNull SentryEvent event, @NotNull @NotNull Hint hint) Description copied from interface:EventProcessorMay mutate or drop a SentryEvent- Specified by:
processin interfaceEventProcessor- Parameters:
event- the SentryEventhint- 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:EventProcessorMay mutate or drop a SentryTransaction- Specified by:
processin interfaceEventProcessor- Parameters:
transaction- the SentryTransactionhint- 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:EventProcessorMay mutate or drop a SentryEvent- Specified by:
processin interfaceEventProcessor- Parameters:
event- the SentryEventhint- the Hint- Returns:
- the event itself, a mutated SentryEvent or null
-
process
Description copied from interface:EventProcessorMay mutate or drop a SentryLogEvent- Specified by:
processin interfaceEventProcessor- Parameters:
event- the SentryLogEvent- Returns:
- the event itself, a mutated SentryLogEvent or null
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getOrder
Description copied from interface:EventProcessorControls when this EventProcessor is invoked.- Specified by:
getOrderin interfaceEventProcessor- Returns:
- order higher number = later, lower number = earlier (negative values may also be passed), null = latest (note: multiple event processors using null may lead to random ordering)
-