fix start time of span is zero issue

This commit is contained in:
ascrutae 2017-04-04 10:16:57 +08:00
parent 8af68b1481
commit 6509e7b758
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ public class SkyWalkingSpanBuilder implements Tracer.SpanBuilder {
@Override
public Span start() {
if (startTime == 0){
startTime = System.currentTimeMillis();
}
return new SkyWalkingSpan(this.operationName, this.startTime, this.tags);
}