Skip to content

Commit a7f42c4

Browse files
committed
[pinpoint-apm#12434] Change Link call to application statistics
1 parent 3ce0137 commit a7f42c4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

web/src/main/java/com/navercorp/pinpoint/web/applicationmap/dao/mapper/InLinkMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ public LinkDataMap mapRow(Result result, int rowNum) throws Exception {
115115

116116
linkDataMap.addLinkData(in, in.getName(), inApplication, outHost, timestamp, histogramSlot, requestCount);
117117

118-
if (logger.isDebugEnabled()) {
119-
logger.debug(" Fetched {}. statistics:{}", LinkDirection.IN_LINK, linkDataMap);
118+
if (logger.isTraceEnabled()) {
119+
logger.trace(" Fetched {}. statistics:{}", LinkDirection.IN_LINK, linkDataMap);
120120
}
121121
}
122122

web/src/main/java/com/navercorp/pinpoint/web/applicationmap/dao/mapper/OutLinkMapper.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ public LinkDataMap mapRow(Result result, int rowNum) throws Exception {
9090
String inHost = buffer.readPrefixedString();
9191
short histogramSlot = buffer.readShort();
9292

93-
String outAgentId = buffer.readPrefixedString();
93+
// String outAgentId = buffer.readPrefixedString();
94+
skipOutAgentId(buffer);
95+
String outAgentId = "EMPTY_AGENT_ID";
9496

9597
long requestCount = CellUtils.valueToLong(cell);
9698
if (logger.isDebugEnabled()) {
@@ -107,6 +109,12 @@ public LinkDataMap mapRow(Result result, int rowNum) throws Exception {
107109
return linkDataMap;
108110
}
109111

112+
private void skipOutAgentId(Buffer buffer) {
113+
// skip outAgentId
114+
int bodySize = buffer.readSVInt();
115+
buffer.setOffset(buffer.getOffset() + bodySize);
116+
}
117+
110118

111119
private Application readInApplication(Buffer buffer) {
112120
short inServiceType = buffer.readShort();

0 commit comments

Comments
 (0)