Package io.sentry.servlet
Class SentryServletRequestListener
java.lang.Object
io.sentry.servlet.SentryServletRequestListener
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletRequestListener
public class SentryServletRequestListener
extends Object
implements javax.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 javax.servlet.ServletRequestEvent servletRequestEvent) void
requestInitialized
(@NotNull javax.servlet.ServletRequestEvent servletRequestEvent)
-
Constructor Details
-
SentryServletRequestListener
-
SentryServletRequestListener
public SentryServletRequestListener()
-
-
Method Details
-
requestDestroyed
public void requestDestroyed(@NotNull @NotNull javax.servlet.ServletRequestEvent servletRequestEvent) - Specified by:
requestDestroyed
in interfacejavax.servlet.ServletRequestListener
-
requestInitialized
public void requestInitialized(@NotNull @NotNull javax.servlet.ServletRequestEvent servletRequestEvent) - Specified by:
requestInitialized
in interfacejavax.servlet.ServletRequestListener
-