Skip to content

Commit

Permalink
Merge pull request #1228 from microsoft/fix-w3c-backcompat
Browse files Browse the repository at this point in the history
Fix W3C BackCompat
  • Loading branch information
trask committed Apr 13, 2020
2 parents d989207 + e24286c commit af6ce93
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public <C> String propagate(Setter<C> setter, C carrier, boolean w3c, boolean w3
setter.put(carrier, "traceparent", traceparent.toString());
if (w3cBackCompat) {
setter.put(carrier, "Request-Id", "|" + traceparent.getTraceId() + "." + traceparent.getSpanId() + ".");
setter.put(carrier, "Request-Context", TelemetryCorrelationUtils.retrieveApplicationCorrelationId());
}
if (tracestate != null) {
setter.put(carrier, "tracestate", tracestate);
Expand Down

0 comments on commit af6ce93

Please sign in to comment.