Class RollbarServletContextInitializer

java.lang.Object
com.rollbar.spring.boot.webmvc.RollbarServletContextInitializer
All Implemented Interfaces:
org.springframework.boot.web.servlet.ServletContextInitializer

@Component public class RollbarServletContextInitializer extends Object implements org.springframework.boot.web.servlet.ServletContextInitializer
  • Constructor Details

    • RollbarServletContextInitializer

      public RollbarServletContextInitializer()
  • Method Details

    • onStartup

      public void onStartup(jakarta.servlet.ServletContext container)
      Adds RollbarListener when app starts up. This enriches HTTP request data with Rollbar exceptions. You can view this data from the Rollbar app.
      Specified by:
      onStartup in interface org.springframework.boot.web.servlet.ServletContextInitializer