Package io.sentry.spring
Annotation Type EnableSentry
-
@Retention(RUNTIME) @Import({SentryHubRegistrar.class,SentryInitBeanPostProcessor.class,SentryWebConfiguration.class}) @Target(TYPE) public @interface EnableSentry
Enables Sentry error handling capabilities.- creates bean of type
SentryOptions
- registers
IHub
for sending Sentry events - registers
SentryExceptionResolver
to 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.String
dsn
The DSN tells the SDK where to send the events to.int
exceptionResolverOrder
Determines whether all web exceptions are reported or only uncaught exceptions.io.sentry.SentryOptions.RequestSize
maxRequestBodySize
Controls the size of the request body to extract if any.boolean
sendDefaultPii
Whether 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
-
-