Skip to content

Commit af1b0cd

Browse files
Spotless
1 parent 232dc89 commit af1b0cd

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

dd-trace-core/src/main/java/datadog/trace/common/writer/TraceProcessingWorker.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import datadog.trace.core.monitor.HealthMetrics;
1818
import datadog.trace.core.postprocessor.AppSecPostProcessor;
1919
import datadog.trace.core.postprocessor.SpanPostProcessor;
20-
2120
import java.util.ArrayList;
2221
import java.util.List;
2322
import java.util.concurrent.CountDownLatch;

dd-trace-core/src/main/java/datadog/trace/core/postprocessor/SpanPostProcessor.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@
55

66
/**
77
* Span Post-processing with a timeout check capability.
8-
* <p>
8+
*
99
* Implementations of this interface should carry out post-processing of spans while supporting
10-
* interruption when a specified time limit is exceeded. The method {@code process}
11-
* must check the state of {@code timeoutCheck} while processing span. If {@code timeoutCheck.getAsBoolean()}
12-
* returns {@code true}, processing should be immediately halted, and the method should return {@code false}.
13-
* If post-processing completes successfully before the timeout, the method should return {@code true}.
10+
* interruption when a specified time limit is exceeded. The method {@code process} must check the
11+
* state of {@code timeoutCheck} while processing span. If {@code timeoutCheck.getAsBoolean()}
12+
* returns {@code true}, processing should be immediately halted, and the method should return
13+
* {@code false}. If post-processing completes successfully before the timeout, the method should
14+
* return {@code true}.
1415
*/
1516
public interface SpanPostProcessor {
1617
/**
1718
* Post-processes a span.
18-
* <p>
19+
*
1920
* @param span The span to be post-processed.
2021
* @param timeoutCheck A timeout check returning {@code true} if the allotted time has elapsed.
21-
* @return {@code true} if the span was successfully processed; {@code false} in case of a timeout.
22+
* @return {@code true} if the span was successfully processed; {@code false} in case of a
23+
* timeout.
2224
*/
2325
boolean process(DDSpan span, BooleanSupplier timeoutCheck);
2426
}

0 commit comments

Comments
 (0)