Fix javadoc for AwsXrayPropagator (#3251)

This commit is contained in:
Anuraag Agrawal 2021-05-25 23:47:34 +09:00 committed by GitHub
parent 57566485d9
commit b120b643af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -30,15 +30,16 @@ import javax.annotation.Nullable;
* https://https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader>AWS
* Tracing header spec</a>
*
* <p>To register the X-Ray propagator together with default propagator:
* <p>To register the X-Ray propagator together with default propagator when using the SDK:
*
* <pre>{@code
* OpenTelemetry.setPropagators(
* DefaultContextPropagators
* .builder()
* .addTextMapPropagator(W3CTraceContextPropagator.getInstance())
* .addTextMapPropagator(AWSXrayPropagator.getInstance())
* .build());
* OpenTelemetrySdk.builder()
* .setPropagators(
* ContextPropagators.create(
* TextMapPropagator.composite(
* W3CTraceContextPropagator.getInstance(),
* AWSXrayPropagator.getInstance())))
* .build();
* }</pre>
*/
public final class AwsXrayPropagator implements TextMapPropagator {