提交 8968db03 编写于 作者: A ascrutae

fix issue that the span operation name of spring mvc is null

上级 fd57c7ce
......@@ -30,6 +30,8 @@ public class ControllerServiceMethodInterceptor implements InstanceMethodsAround
RequestMapping methodRequestMapping = method.getAnnotation(RequestMapping.class);
if (methodRequestMapping.value().length > 0) {
requestURL = methodRequestMapping.value()[0];
} else if (methodRequestMapping.path().length > 0) {
requestURL = methodRequestMapping.path()[0];
} else {
requestURL = "";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册