Skip to content

Commit

Permalink
Merge pull request #458 from ascrutae/zhangxin/fix/spring-operationNa…
Browse files Browse the repository at this point in the history
…me-failed

fix issue that the span  operation name of spring mvc is null
  • Loading branch information
wu-sheng committed Sep 25, 2017
2 parents fd57c7c + 8968db0 commit 928e782
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allAr
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 = "";
}
Expand Down

0 comments on commit 928e782

Please sign in to comment.