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 Details

    • SentryServletRequestListener

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

      public SentryServletRequestListener()
  • Method Details

    • requestDestroyed

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

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