Closed moorara closed 4 years ago
The examples and instrumentation have been moved BTW:
To answer the question directly though, nothing has changed an you would still use propagation.ExtractHTTP
and propagation.InjectHTTP
with the configured or global propagators.
These will likely change names in an upcoming release as they have been renamed at the specification level.
With
http
andgrpc
examples removed (and related instrumentation packages) inv0.11.0
, I see three options for injecting and extracting correlation contexts:api/trace
: usingInject
andExtract
methods available onB3
(whichB3Encoding
should be used?)api/correlation
: usingInject
andExtract
methods available onCorrelationContext
api/propagation
: usingInjectHTTP
andExtractHTTP
methods.How are these three approaches different and which one is recommended?