Merge pull request #120 from ascrutae/feature/3.0
fix start time of span is zero issue
This commit is contained in:
commit
b453d7dd63
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue