mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-28 06:08:43 +10:00
[유치수] [NOBTS] hide self called request from calltree.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@732 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -75,11 +75,17 @@ public class ServerCallTree {
|
||||
fromServer = servers.get(spanIdToServerId.get(PREFIX_CLIENT + to));
|
||||
}
|
||||
|
||||
ServerRequest ServerRequest = new ServerRequest(fromServer, toServer);
|
||||
if (ServerRequests.containsKey(ServerRequest.getId())) {
|
||||
ServerRequests.get(ServerRequest.getId()).increaseCallCount();
|
||||
ServerRequest serverRequest = new ServerRequest(fromServer, toServer);
|
||||
|
||||
// TODO: local call인 경우 보여주지 않음.
|
||||
if (serverRequest.isSelfCalled()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ServerRequests.containsKey(serverRequest.getId())) {
|
||||
ServerRequests.get(serverRequest.getId()).increaseCallCount();
|
||||
} else {
|
||||
ServerRequests.put(ServerRequest.getId(), ServerRequest);
|
||||
ServerRequests.put(serverRequest.getId(), serverRequest);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,10 @@ public class ServerRequest {
|
||||
this.id = from.getId() + to.getId();
|
||||
}
|
||||
|
||||
public boolean isSelfCalled() {
|
||||
return from.getSequence() == to.getSequence();
|
||||
}
|
||||
|
||||
public void increaseCallCount() {
|
||||
callCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user