Class DispatcherServletInstrumentation.HandlerMappingAdvice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.spring.webmvc.v6_0.DispatcherServletInstrumentation.HandlerMappingAdvice
- Enclosing class:
- DispatcherServletInstrumentation
This advice creates a filter that has reference to the handlerMappings from DispatcherServlet
which allows the mappings to be evaluated outside of regular request processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidafterRefresh(org.springframework.context.ApplicationContext springCtx, List<org.springframework.web.servlet.HandlerMapping> handlerMappings)
-
Constructor Details
-
HandlerMappingAdvice
public HandlerMappingAdvice()
-
-
Method Details
-
afterRefresh
@OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void afterRefresh(@Argument(0) org.springframework.context.ApplicationContext springCtx, @FieldValue("handlerMappings") List<org.springframework.web.servlet.HandlerMapping> handlerMappings)
-