Search before asking
Description
As for now, skywalking-java gets route by parsing annotations, which won't work well when a method or controller class has multiple routes. In this case, the first route in the annotation will always be used.
Spring will set BEST_MATCHING_PATTERN_ATTRIBUTE after the handler has been matched, which can be used to set the operationName.
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter#handle is a good entry point to get the attribute. It's also used by the spring mvc plugin of OpenTelemetry.
Use case
No response
Related issues
No response
Are you willing to submit a pull request to implement this on your own?
Code of Conduct