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 Details

    • SentryServletRequestListener

      public SentryServletRequestListener(@NotNull @NotNull IHub hub)
    • SentryServletRequestListener

      public SentryServletRequestListener()
  • Method Details

    • requestDestroyed

      public void requestDestroyed(@NotNull @NotNull javax.servlet.ServletRequestEvent servletRequestEvent)
      Specified by:
      requestDestroyed in interface javax.servlet.ServletRequestListener
    • requestInitialized

      public void requestInitialized(@NotNull @NotNull javax.servlet.ServletRequestEvent servletRequestEvent)
      Specified by:
      requestInitialized in interface javax.servlet.ServletRequestListener