Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
STS team attempts to find a spot in the source code that declares RM using functional style using the JSON data from the Actuator.
For example for the source code
We'd like to find for
There are two pieces of data to help find the method: predicate and handler.
The handler data should be the most helpful in matching the method. However, based on the handler data we cannot match the
It'd be great if each router function could hold the id of the RouterFunction bean for example or expose the RouterFunction bean id in the
Down the stream Boot Actuator could pick that bean id and pass it down to JMX bean data for the functional RM. Thus we on the STS side could find the method defining bean with the id and then associate that place in the source code to a place where functional RM is defined.
Otherwise, currently actuator has an aggregate RouterFuctions object that has all RMs and extracts predicates and handlers for each RM from the aggregate RouterFuctions object with a help of RouterFunctions.Visitor
Here is the related Boot Actuator issue: spring-projects/spring-boot#15230
Reference URL: spring-projects/spring-boot#15230
Arjen Poutsma commented
The vast majority of
Given that most router functions are not Spring beans, we are not going to change the visitor API to take a bean identifier, as it would be