Document precedence order is multiple context propagators are used (#1698)

* Document precedence order is multiple context propagators are used

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* implement review comments

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
This commit is contained in:
Sergei Malafeev 2020-10-21 05:07:00 +08:00 committed by GitHub
parent def5a23ca0
commit 3670a69722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ public final class DefaultContextPropagators implements ContextPropagators {
* {@link Builder} is used to construct a new {@code ContextPropagators} object with the specified
* propagators.
*
* <p>Invocation order of {@code TextMapPropagator#inject()} and {@code
* TextMapPropagator#extract()} for registered trace propagators is undefined.
*
* <p>This is a example of a {@code ContextPropagators} object being created:
*
* <pre>{@code