Package io.sentry.spring
Annotation Type EnableSentry
-
@Retention(RUNTIME) @Import({SentryHubRegistrar.class,SentryInitBeanPostProcessor.class,SentryWebConfiguration.class}) @Target(TYPE) public @interface EnableSentryEnables Sentry error handling capabilities.- creates bean of type
SentryOptions - registers
IHubfor sending Sentry events - registers
SentryExceptionResolverto send Sentry event for any uncaught exception in Spring MVC flow.
- creates bean of type
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringdsnThe DSN tells the SDK where to send the events to.intexceptionResolverOrderDetermines whether all web exceptions are reported or only uncaught exceptions.io.sentry.SentryOptions.RequestSizemaxRequestBodySizeControls the size of the request body to extract if any.booleansendDefaultPiiWhether to send personal identifiable information along with events.
-
-
-
-
exceptionResolverOrder
int exceptionResolverOrder
Determines whether all web exceptions are reported or only uncaught exceptions.- Returns:
- the order to use for
SentryExceptionResolver
- Default:
- 1
-
-