From e24286c57a88bc17a5f0c60521fec90316e481c7 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Wed, 8 Apr 2020 16:59:23 -0700 Subject: [PATCH] Fix W3C BackCompat --- .../applicationinsights/web/internal/SdkBridgeImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/main/java/com/microsoft/applicationinsights/web/internal/SdkBridgeImpl.java b/web/src/main/java/com/microsoft/applicationinsights/web/internal/SdkBridgeImpl.java index 224af8a9bdf..97d0c747b58 100644 --- a/web/src/main/java/com/microsoft/applicationinsights/web/internal/SdkBridgeImpl.java +++ b/web/src/main/java/com/microsoft/applicationinsights/web/internal/SdkBridgeImpl.java @@ -73,6 +73,7 @@ public String propagate(Setter 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);