[유치수] [NOBTS] modify http client server interceptor

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@796 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2012-10-17 02:51:23 +00:00
parent 761407c74c
commit 29b3f2aaef
2 changed files with 5 additions and 2 deletions
@@ -43,7 +43,7 @@ public class ExecuteMethodInterceptor implements StaticAroundInterceptor {
Trace.recordRpcName(request.getProtocolVersion().toString(), "CLIENT");
Trace.recordEndPoint(request.getProtocolVersion().toString() + ":" + host.getHostName() + ":" + host.getPort());
Trace.recordAttibute("http.url", request.toString());
Trace.recordAttibute("http.url", request.getRequestLine().getUri());
Trace.record(Annotation.ClientSend);
} finally {
Trace.traceBlockEnd();
@@ -51,7 +51,10 @@ public class StandardHostValveInvokeInterceptor implements StaticAroundIntercept
Trace.recordRpcName("TOMCAT", requestURL);
Trace.recordEndPoint(request.getProtocol() + ":" + request.getLocalName() + ":" + request.getLocalPort());
Trace.recordAttibute("http.params", parameters);
Trace.recordAttibute("http.url", request.getRequestURI());
if (!org.apache.commons.lang.StringUtils.isEmpty(parameters)) {
Trace.recordAttibute("http.params", parameters);
}
Trace.record(Annotation.ServerRecv);
StopWatch.start("StandardHostValveInvokeInterceptor-starttime");