mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-19 01:35:58 +10:00
[유치수] [NOBTS] remote addr 수집 기능 추가.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1187 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -304,7 +304,17 @@ public final class Trace {
|
||||
SubSpan span = ((SubStackFrame) currentStackFrame).getSubSpan();
|
||||
span.setEndPoint(endPoint);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void recordRemoteAddr(final String remoteAddr) {
|
||||
// TODO API 단일화 필요.
|
||||
StackFrame currentStackFrame = getCurrentStackFrame();
|
||||
if (currentStackFrame instanceof RootStackFrame) {
|
||||
Span span = ((RootStackFrame) currentStackFrame).getSpan();
|
||||
span.setRemoteAddr(remoteAddr);
|
||||
} else {
|
||||
// do nothing.
|
||||
}
|
||||
}
|
||||
|
||||
public void recordNextSpanId(int spanId) {
|
||||
|
||||
Reference in New Issue
Block a user