diff --git a/plugins/spring/src/main/java/com/navercorp/pinpoint/plugin/spring/web/interceptor/LookupHandlerMethodInterceptor.java b/plugins/spring/src/main/java/com/navercorp/pinpoint/plugin/spring/web/interceptor/LookupHandlerMethodInterceptor.java index 87438bf930f94..48bb221f11076 100644 --- a/plugins/spring/src/main/java/com/navercorp/pinpoint/plugin/spring/web/interceptor/LookupHandlerMethodInterceptor.java +++ b/plugins/spring/src/main/java/com/navercorp/pinpoint/plugin/spring/web/interceptor/LookupHandlerMethodInterceptor.java @@ -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); } } }