Package io.sentry.util
Class EventSizeLimitingUtils
java.lang.Object
io.sentry.util.EventSizeLimitingUtils
Utility class that limits event size to 1MB by incrementally dropping fields when the event
exceeds the limit.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SentryEventlimitEventSize(@NotNull SentryEvent event, @NotNull Hint hint, @NotNull SentryOptions options) Limits the size of an event by incrementally dropping fields when it exceeds the limit.
-
Method Details
-
limitEventSize
@Nullable public static @Nullable SentryEvent limitEventSize(@NotNull @NotNull SentryEvent event, @NotNull @NotNull Hint hint, @NotNull @NotNull SentryOptions options) Limits the size of an event by incrementally dropping fields when it exceeds the limit.- Parameters:
event- the event to limithint- the hintoptions- the SentryOptions- Returns:
- the potentially reduced event
-