Merge pull request #120 from ascrutae/feature/3.0

fix start time of span is zero issue
This commit is contained in:
吴晟 Wu Sheng 2017-04-04 13:45:09 +08:00 committed by GitHub
commit b453d7dd63
1 changed files with 3 additions and 0 deletions

View File

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