code: @Bean
      @Conditional(SpringWebMvcLoadedCondition.class)
      ServletListenerRegistrationBean<ServletRequestListener> listenerRegistrationBean() {
          ServletListenerRegistrationBean<ServletRequestListener> srb =
                  new ServletListenerRegistrationBean<ServletRequestListener>();
          srb.setListener(new BugsnagServletRequestListener());
          return srb;
      }
docs: The {@link com.bugsnag.servlet.BugsnagServletContainerInitializer} does not work for Spring Boot, need to
  register the {@link BugsnagServletRequestListener} using a Spring Boot
  {@link ServletListenerRegistrationBean} instead. This adds session tracking and
  automatic servlet request metadata collection.