From 4dde536328a50b617e96a33dd3bee72e69c17931 Mon Sep 17 00:00:00 2001 From: James Moessis Date: Thu, 1 Feb 2024 13:39:44 +1100 Subject: [PATCH] spotless --- .../awsxray/propagator/AwsXrayPropagator.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/aws-xray-propagator/src/main/java/io/opentelemetry/contrib/awsxray/propagator/AwsXrayPropagator.java b/aws-xray-propagator/src/main/java/io/opentelemetry/contrib/awsxray/propagator/AwsXrayPropagator.java index 086bacd45..83bf4bb69 100644 --- a/aws-xray-propagator/src/main/java/io/opentelemetry/contrib/awsxray/propagator/AwsXrayPropagator.java +++ b/aws-xray-propagator/src/main/java/io/opentelemetry/contrib/awsxray/propagator/AwsXrayPropagator.java @@ -108,17 +108,18 @@ public void inject(Context context, @Nullable C carrier, TextMapSetter se char samplingFlag = spanContext.isSampled() ? IS_SAMPLED : NOT_SAMPLED; // TODO: Add OT trace state to the X-Ray trace header - String traceHeader = TRACE_ID_KEY + - KV_DELIMITER + - xrayTraceId + - TRACE_HEADER_DELIMITER + - PARENT_ID_KEY + - KV_DELIMITER + - parentId + - TRACE_HEADER_DELIMITER + - SAMPLED_FLAG_KEY + - KV_DELIMITER + - samplingFlag; + String traceHeader = + TRACE_ID_KEY + + KV_DELIMITER + + xrayTraceId + + TRACE_HEADER_DELIMITER + + PARENT_ID_KEY + + KV_DELIMITER + + parentId + + TRACE_HEADER_DELIMITER + + SAMPLED_FLAG_KEY + + KV_DELIMITER + + samplingFlag; setter.set(carrier, TRACE_HEADER_KEY, traceHeader); }