Fix wrong sample code (#974)

This commit is contained in:
Toshiaki Maki
2018-05-06 21:30:07 +09:00
committed by Marcin Grzejszczak
parent 6e13e2247e
commit fbdc4f3eb8

View File

@@ -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