Skip to content

Commit c1c5a4d

Browse files
committed
Update doc to refer to ContextContinuation
1 parent 8a13612 commit c1c5a4d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/how_instrumentations_work.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -824,11 +824,11 @@ methods.
824824

825825
## Continuations
826826

827-
- [`TraceScope.Continuation`](https://github.com/DataDog/dd-trace-java/blob/09ac78ff0b54fbbbee0ab1c89c901d2043fda40b/dd-trace-api/src/main/java/datadog/trace/context/TraceScope.java#L47)
827+
- [`ContextContinuation`](https://github.com/DataDog/dd-trace-java/blob/b1db32e43c88eeab3c734c1826753bbc6fae9975/components/context/src/main/java/datadog/context/ContextContinuation.java)
828828
is used to pass context between threads.
829-
- Continuations must be either activated or canceled.
830-
- If a Continuation is activated it returns a TraceScope which must eventually be closed.
831-
- Only after all TraceScopes are closed and any non-activated Continuations are canceled may the Trace finally close.
829+
- Continuations must be either resumed or released.
830+
- If a Continuation is resumed it returns a `ContextScope` which must eventually be closed.
831+
- Only after all scopes are closed and any non-resumed continuations are released may the Trace finally close.
832832

833833
Notice
834834
in [`HttpClientRequestTracingHandler`](https://github.com/DataDog/dd-trace-java/blob/3fe1b2d6010e50f61518fa25af3bdeb03ae7712b/dd-java-agent/instrumentation/netty-4.1/src/main/java/datadog/trace/instrumentation/netty41/client/HttpClientRequestTracingHandler.java#L56)

0 commit comments

Comments
 (0)