From 8a24ea1277f679058a8fece7440ad70871a55c3e Mon Sep 17 00:00:00 2001 From: Rosa Trieu Date: Wed, 8 May 2024 13:22:05 -0700 Subject: [PATCH 1/3] Add details about the traceparent header --- content/en/real_user_monitoring/guide/browser-sdk-upgrade.md | 2 +- .../en/real_user_monitoring/platform/connect_rum_and_traces.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/content/en/real_user_monitoring/guide/browser-sdk-upgrade.md b/content/en/real_user_monitoring/guide/browser-sdk-upgrade.md index 0ac48cb342779..045f454fb4c9b 100644 --- a/content/en/real_user_monitoring/guide/browser-sdk-upgrade.md +++ b/content/en/real_user_monitoring/guide/browser-sdk-upgrade.md @@ -126,7 +126,7 @@ In v5, the default `sessionReplaySampleRate` is 0 instead of 100. If you don't i To promote the support and usage of OpenTelemetry, the default propagator types have been changed to include `tracecontext` in addition to `datadog`. -**Action to take**: If you are not already specifying the desired propagator on the `allowedTracingUrls` initialization parameter, configure your server Access-Control-Allow-Headers to also accept `traceparent` header. For more information, see [connect RUM and Traces][25]. +**Action to take**: If you are not already specifying the desired propagator on the `allowedTracingUrls` initialization parameter, configure your server Access-Control-Allow-Headers to also accept the `traceparent` header. For more information, see [connect RUM and Traces][25]. ### Session plan field diff --git a/content/en/real_user_monitoring/platform/connect_rum_and_traces.md b/content/en/real_user_monitoring/platform/connect_rum_and_traces.md index ba400d0bf6d33..e0b196fe2b937 100644 --- a/content/en/real_user_monitoring/platform/connect_rum_and_traces.md +++ b/content/en/real_user_monitoring/platform/connect_rum_and_traces.md @@ -524,6 +524,9 @@ Datadog uses the distributed tracing protocol and sets up the following HTTP hea : To make sure that the Agent keeps the trace. {{% /tab %}} {{% tab "W3C Trace Context" %}} + +The W3C Trace Context header is sent by default. This means you need to configure `traceparent` for CORS servers in addition to the default Datadog-specific headers. + `traceparent: [version]-[trace id]-[parent id]-[trace flags]` : `version`: The current specification assumes version is set to `00`. : `trace id`: 128 bits trace ID, hexadecimal on 32 characters. The source trace ID is 64 bits to keep compatibility with APM. From 9cb9591550fb66858987372e6aa21aa5463f3b6b Mon Sep 17 00:00:00 2001 From: Rosa Trieu Date: Mon, 13 May 2024 06:29:00 -0700 Subject: [PATCH 2/3] trace context and datadog headers used by default --- .../en/real_user_monitoring/platform/connect_rum_and_traces.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/real_user_monitoring/platform/connect_rum_and_traces.md b/content/en/real_user_monitoring/platform/connect_rum_and_traces.md index e0b196fe2b937..78a62ac89cbde 100644 --- a/content/en/real_user_monitoring/platform/connect_rum_and_traces.md +++ b/content/en/real_user_monitoring/platform/connect_rum_and_traces.md @@ -509,7 +509,7 @@ RUM supports several propagator types to connect resources with backends that ar ## How are RUM resources linked to traces? -Datadog uses the distributed tracing protocol and sets up the following HTTP headers: +Datadog uses the distributed tracing protocol and sets up the HTTP headers below. By default, both trace context and Datadog-specific headers are used. {{< tabs >}} {{% tab "Datadog" %}} `x-datadog-trace-id` : Generated from the Real User Monitoring SDK. Allows Datadog to link the trace with the RUM resource. From d54e20bd429c7278f42be4249bef1d6b17872a09 Mon Sep 17 00:00:00 2001 From: Rosa Trieu Date: Mon, 13 May 2024 08:54:35 -0700 Subject: [PATCH 3/3] remove dupe info --- .../en/real_user_monitoring/platform/connect_rum_and_traces.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/en/real_user_monitoring/platform/connect_rum_and_traces.md b/content/en/real_user_monitoring/platform/connect_rum_and_traces.md index 78a62ac89cbde..217d92d5846df 100644 --- a/content/en/real_user_monitoring/platform/connect_rum_and_traces.md +++ b/content/en/real_user_monitoring/platform/connect_rum_and_traces.md @@ -525,8 +525,6 @@ Datadog uses the distributed tracing protocol and sets up the HTTP headers below {{% /tab %}} {{% tab "W3C Trace Context" %}} -The W3C Trace Context header is sent by default. This means you need to configure `traceparent` for CORS servers in addition to the default Datadog-specific headers. - `traceparent: [version]-[trace id]-[parent id]-[trace flags]` : `version`: The current specification assumes version is set to `00`. : `trace id`: 128 bits trace ID, hexadecimal on 32 characters. The source trace ID is 64 bits to keep compatibility with APM.