mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-25 04:35:59 +10:00
[유치수] [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:
@@ -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++;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user