File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dd-trace-core/src/main/java/datadog/trace/common/writer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,14 +254,14 @@ private void maybeTracePostProcessing(List<DDSpan> trace) {
254254 final SpanPostProcessor postProcessor = SpanPostProcessor .Holder .INSTANCE ;
255255 try {
256256 final long timeout = Config .get ().getTracePostProcessingTimeout ();
257- final long deadline = System .currentTimeMillis () + timeout ;
257+ final long deadline = System .nanoTime () + timeout * 1000 * 1000 ;
258258 final boolean [] timedOut = {false };
259259 final BooleanSupplier timeoutCheck =
260260 () -> {
261261 if (timedOut [0 ]) {
262262 return true ;
263263 }
264- if (System .currentTimeMillis () > deadline ) {
264+ if (System .nanoTime () > deadline ) {
265265 timedOut [0 ] = true ;
266266 }
267267 return timedOut [0 ];
You can’t perform that action at this time.
0 commit comments