fix issue w/ endTime and duration
@@ -40,8 +40,12 @@ public class DDSpan implements io.opentracing.Span {
this.durationNano = System.nanoTime() - startTime;
}
- public void finish(long nano) {
- this.durationNano = nano;
+ public void finishWithDuration(long durationNano) {
+ this.durationNano = durationNano;
+ }
+
+ public void finish(long stopTime) {
+ this.durationNano = startTime - stopTime;
}
public void close() {
