Skip to content

Commit

Permalink
[pinpoint-apm#9480] also collects unsampled trace uris for uri stat
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ram committed Dec 7, 2022
1 parent 58fc150 commit 9e54525
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public void before(Object target, Object[] args) {

@Override
public void after(Object target, Object[] args, Object result, Throwable throwable) {
if (traceContext.currentTraceObject() != null) {
if (traceContext.currentRawTraceObject() != null) {
String url = (String)((HttpServletRequest)args[1]).getAttribute(SpringWebMvcConstants.SPRING_MVC_DEFAULT_URI_ATTRIBUTE_KEY);
traceContext.currentTraceObject().setUriTemplate(url);
traceContext.currentRawTraceObject().setUriTemplate(url);
}
}
}

0 comments on commit 9e54525

Please sign in to comment.