[유치수] [NOBTS] add exception property to span

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@1068 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2012-12-27 09:37:36 +00:00
parent d8d4a6e3cd
commit 8773619556
5 changed files with 41 additions and 24 deletions
@@ -23,7 +23,7 @@ public class BusinessTransaction {
long end = begin + elapsed;
totalTime = maxTime = minTime = elapsed;
this.traces.add(new Trace(new UUID(span.getMostTraceId(), span.getLeastTraceId()).toString(), elapsed, span.getStartTime()));
this.traces.add(new Trace(new UUID(span.getMostTraceId(), span.getLeastTraceId()).toString(), elapsed, span.getStartTime(), span.isException()));
calls++;
}
@@ -38,7 +38,7 @@ public class BusinessTransaction {
if (minTime > elapsed)
minTime = elapsed;
this.traces.add(new Trace(new UUID(span.getMostTraceId(), span.getLeastTraceId()).toString(), elapsed, span.getStartTime()));
this.traces.add(new Trace(new UUID(span.getMostTraceId(), span.getLeastTraceId()).toString(), elapsed, span.getStartTime(), span.isException()));
if (span.getParentSpanId() == -1) {
calls++;
+24 -17
View File
@@ -2,25 +2,32 @@ package com.nhn.hippo.web.vo;
public class Trace {
private final String traceId;
private final long executionTime;
private final long startTime;
private final String traceId;
private final long executionTime;
private final long startTime;
public Trace(String traceId, long executionTime, long startTime) {
this.traceId = traceId;
this.executionTime = executionTime;
this.startTime = startTime;
}
private final boolean exception;
public String getTraceId() {
return traceId;
}
public Trace(String traceId, long executionTime, long startTime, boolean exception) {
this.traceId = traceId;
this.executionTime = executionTime;
this.startTime = startTime;
this.exception = exception;
}
public long getExecutionTime() {
return executionTime;
}
public String getTraceId() {
return traceId;
}
public long getStartTime() {
return startTime;
}
public long getExecutionTime() {
return executionTime;
}
public long getStartTime() {
return startTime;
}
public boolean isException() {
return exception;
}
}