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) {
254
254
final SpanPostProcessor postProcessor = SpanPostProcessor .Holder .INSTANCE ;
255
255
try {
256
256
final long timeout = Config .get ().getTracePostProcessingTimeout ();
257
- final long deadline = System .currentTimeMillis () + timeout ;
257
+ final long deadline = System .nanoTime () + timeout * 1000 * 1000 ;
258
258
final boolean [] timedOut = {false };
259
259
final BooleanSupplier timeoutCheck =
260
260
() -> {
261
261
if (timedOut [0 ]) {
262
262
return true ;
263
263
}
264
- if (System .currentTimeMillis () > deadline ) {
264
+ if (System .nanoTime () > deadline ) {
265
265
timedOut [0 ] = true ;
266
266
}
267
267
return timedOut [0 ];
You can’t perform that action at this time.
0 commit comments