Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmoessis committed Feb 1, 2024
1 parent 53cb5cf commit c23766d
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,18 @@ public <C> void inject(Context context, @Nullable C carrier, TextMapSetter<C> 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);
}
Expand Down

0 comments on commit c23766d

Please sign in to comment.