File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
dd-trace-core/src/main/java/datadog/trace Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 17
17
import datadog .trace .core .monitor .HealthMetrics ;
18
18
import datadog .trace .core .postprocessor .AppSecPostProcessor ;
19
19
import datadog .trace .core .postprocessor .SpanPostProcessor ;
20
-
21
20
import java .util .ArrayList ;
22
21
import java .util .List ;
23
22
import java .util .concurrent .CountDownLatch ;
Original file line number Diff line number Diff line change 5
5
6
6
/**
7
7
* Span Post-processing with a timeout check capability.
8
- * <p>
8
+ *
9
9
* 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}.
14
15
*/
15
16
public interface SpanPostProcessor {
16
17
/**
17
18
* Post-processes a span.
18
- * <p>
19
+ *
19
20
* @param span The span to be post-processed.
20
21
* @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.
22
24
*/
23
25
boolean process (DDSpan span , BooleanSupplier timeoutCheck );
24
26
}
You can’t perform that action at this time.
0 commit comments