Fix wrong sample code (#974)
This commit is contained in:
committed by
Marcin Grzejszczak
parent
6e13e2247e
commit
fbdc4f3eb8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user