fix issue w/ endTime and duration
MODIFY
src/main/java/com/datadoghq/trace/impl/DDSpan.java
src/main/java/com/datadoghq/trace/impl/DDSpan.java
@@ -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() {

fix issue w/ endTime and duration