Package io.sentry.servlet.jakarta
Class SentryServletRequestListener
java.lang.Object
io.sentry.servlet.jakarta.SentryServletRequestListener
- All Implemented Interfaces:
jakarta.servlet.ServletRequestListener
,EventListener
public class SentryServletRequestListener
extends Object
implements jakarta.servlet.ServletRequestListener
This request listener pushes a new scope into sentry that enriches a Sentry event with the
details about the current request upon sending.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
requestDestroyed
(@NotNull jakarta.servlet.ServletRequestEvent servletRequestEvent) void
requestInitialized
(@NotNull jakarta.servlet.ServletRequestEvent servletRequestEvent)
-
Constructor Details
-
SentryServletRequestListener
-
SentryServletRequestListener
public SentryServletRequestListener()
-
-
Method Details
-
requestDestroyed
public void requestDestroyed(@NotNull @NotNull jakarta.servlet.ServletRequestEvent servletRequestEvent) - Specified by:
requestDestroyed
in interfacejakarta.servlet.ServletRequestListener
-
requestInitialized
public void requestInitialized(@NotNull @NotNull jakarta.servlet.ServletRequestEvent servletRequestEvent) - Specified by:
requestInitialized
in interfacejakarta.servlet.ServletRequestListener
-