diff --git a/docs/src/main/asciidoc/spring-cloud-sleuth.adoc b/docs/src/main/asciidoc/spring-cloud-sleuth.adoc index d5d37e9bd..386dfc80a 100644 --- a/docs/src/main/asciidoc/spring-cloud-sleuth.adoc +++ b/docs/src/main/asciidoc/spring-cloud-sleuth.adoc @@ -332,10 +332,10 @@ The following example shows how server-side propagation might work: ```java // configure a function that extracts the trace context from a request -extracted = tracing.propagation().extractor(Request::getHeader); +extractor = tracing.propagation().extractor(Request::getHeader); // when a server receives a request, it joins or starts a new trace -span = tracer.nextSpan(extracted, request); +span = tracer.nextSpan(extractor.extract(request)); ``` === Propagating extra fields