<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dynatrace Trace ID is overriding OTEL trace ID in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/225910#M29042</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have a few services instrumented with both Dynatrace agent &amp;amp; OTEL manual instrumentation. These services are mainly running in Fargate containers &amp;amp; Lambdas, runtime is node.js&lt;/P&gt;
&lt;P&gt;Services that are instrumented with dynatrace agent are sent to Dynatrace UI, whereas for same services that are instrumented with &lt;STRONG&gt;OTEL manual instrumentation&lt;/STRONG&gt; are sent to other visualization layer(Lightstep).&lt;/P&gt;
&lt;P&gt;We have noticed that enabling one of the dynatrace feature '&lt;STRONG&gt;Forward Tag 4&amp;nbsp;trace&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;context extension&lt;/STRONG&gt;' is actually overriding OTEL trace ID and replacing it with Dynatrace trace ID. This feature is mandatory for dynatrace to connect AWS services(received this from support).&amp;nbsp;&lt;STRONG&gt;This is a big red flag for running Dynatrace and OTEL in parallel. Because of this our leadership team is looking to remove dynatrace agents and this has become bigger issue now.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Has anyone encountered the same issue and were you able to resolve this issue.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Support Ticket:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://one.dynatrace.com/hc/en-us/requests/204674" target="_blank" rel="noopener"&gt;https://one.dynatrace.com/hc/en-us/requests/204674&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is our architecture:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tarun_kumar_aga_0-1697666883770.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14760iE81EFF8A924B66BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tarun_kumar_aga_0-1697666883770.png" alt="tarun_kumar_aga_0-1697666883770.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is the documentation we followed to instrument AWS API Gateway non-proxy integration:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-lambda-integration/aws-lambda-extension#config-options" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-lambda-integration/aws-lambda-extension#config-options&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Below is the dynatrace feature we have enabled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tarun_kumar_aga_1-1697667187891.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14761iE8007C4F1D36AE4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tarun_kumar_aga_1-1697667187891.png" alt="tarun_kumar_aga_1-1697667187891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tarun&lt;/P&gt;
&lt;P&gt;cc&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34884"&gt;@michael_kopp&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6138"&gt;@patrick_thurner&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/146" target="_blank" rel="noopener"&gt;@andreas_grabner&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 09:47:44 GMT</pubDate>
    <dc:creator>tarun_kumar_aga</dc:creator>
    <dc:date>2023-11-16T09:47:44Z</dc:date>
    <item>
      <title>Dynatrace Trace ID is overriding OTEL trace ID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/225910#M29042</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have a few services instrumented with both Dynatrace agent &amp;amp; OTEL manual instrumentation. These services are mainly running in Fargate containers &amp;amp; Lambdas, runtime is node.js&lt;/P&gt;
&lt;P&gt;Services that are instrumented with dynatrace agent are sent to Dynatrace UI, whereas for same services that are instrumented with &lt;STRONG&gt;OTEL manual instrumentation&lt;/STRONG&gt; are sent to other visualization layer(Lightstep).&lt;/P&gt;
&lt;P&gt;We have noticed that enabling one of the dynatrace feature '&lt;STRONG&gt;Forward Tag 4&amp;nbsp;trace&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;context extension&lt;/STRONG&gt;' is actually overriding OTEL trace ID and replacing it with Dynatrace trace ID. This feature is mandatory for dynatrace to connect AWS services(received this from support).&amp;nbsp;&lt;STRONG&gt;This is a big red flag for running Dynatrace and OTEL in parallel. Because of this our leadership team is looking to remove dynatrace agents and this has become bigger issue now.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Has anyone encountered the same issue and were you able to resolve this issue.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Support Ticket:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://one.dynatrace.com/hc/en-us/requests/204674" target="_blank" rel="noopener"&gt;https://one.dynatrace.com/hc/en-us/requests/204674&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is our architecture:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tarun_kumar_aga_0-1697666883770.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14760iE81EFF8A924B66BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tarun_kumar_aga_0-1697666883770.png" alt="tarun_kumar_aga_0-1697666883770.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is the documentation we followed to instrument AWS API Gateway non-proxy integration:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-lambda-integration/aws-lambda-extension#config-options" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-lambda-integration/aws-lambda-extension#config-options&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Below is the dynatrace feature we have enabled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tarun_kumar_aga_1-1697667187891.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14761iE8007C4F1D36AE4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tarun_kumar_aga_1-1697667187891.png" alt="tarun_kumar_aga_1-1697667187891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tarun&lt;/P&gt;
&lt;P&gt;cc&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34884"&gt;@michael_kopp&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6138"&gt;@patrick_thurner&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/146" target="_blank" rel="noopener"&gt;@andreas_grabner&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 09:47:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/225910#M29042</guid>
      <dc:creator>tarun_kumar_aga</dc:creator>
      <dc:date>2023-11-16T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Trace ID is overriding OTEL trace ID (https://one.dynatrace.com/hc/en-us/requests/204674)</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/226433#M29167</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If two monitoring tools are active at the same time in the same process but work independent of each other it's mostly impossible to avoid that a single operation results in two traces.&lt;/P&gt;&lt;P&gt;For example if a span is created via OpenTelemetry API it doesn't consider the state of OneAgent at this time and creates a new traceId even if OneAgent started a trace already before.&lt;/P&gt;&lt;P&gt;To continue a trace on another process both monitoring tools inject and extract their view of the trace via e.g. W3C tracecontext or B3 headers. If the same propagation headers are used conflicts may arise even OneAgent tries to avoid overwriting headers set by OpenTelemetry.&lt;/P&gt;&lt;P&gt;The OneAgent feature Forward Tag 4 trace context extension is needed in this setup to ensure that the trace started by a OneAgent code module is continued by the dynatrace AWS lambda layer. If the feature is not set OneAgent doesn't set traceId/spanId on propagation headers resulting in a broken OneAgent trace.&lt;/P&gt;&lt;P&gt;The OneAgent layer for AWS lambda has some limitations compared to other OneAgent code modules:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;it doesn't allow an OpenTelemetry SDK to register a &lt;FONT face="courier new,courier"&gt;TracerProvider&lt;/FONT&gt; and Propagator if &lt;FONT face="courier new,courier"&gt;DT_OPEN_TELEMETRY_ENABLE_INTEGRATION&lt;/FONT&gt; is set to &lt;FONT face="courier new,courier"&gt;true&lt;/FONT&gt;&lt;BR /&gt;* Risk is higher that it overwrites W3C tracecontext headers on outgoing requests (if &lt;FONT face="courier new,courier"&gt;DT_OPEN_TELEMETRY_ENABLE_INTEGRATION&lt;/FONT&gt; is not set, if set OneAgent owns the propagation as mentioned above)&lt;BR /&gt;* Even it's based on OpenTelemetry it doesn't support to install an additional exporter as of now&lt;BR /&gt;* the description &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/opentelemetry/getting-started/traces/oneagent#export-to-third-party-backends-while-using-oneagent" target="_self"&gt;here&lt;/A&gt; doesn't apply to AWS lambda layer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;As a result you end up in having to decide if OneAgent or LightStep trace "wins" regarding continuation of a trace.&lt;/P&gt;&lt;P&gt;There might be a workaround: If OpenTelemetry is configured to *not* use W3C tracecontext headers for propagation (e.g. use B3 instead) and keep &lt;FONT face="courier new,courier"&gt;DT_OPEN_TELEMETRY_ENABLE_INTEGRATION&lt;/FONT&gt; disabled it might work to have OneAgent to keep the OneAgent trace intact and LightStep to keep the LightStep trace intact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:43:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/226433#M29167</guid>
      <dc:creator>Gerhard_Stoebic</dc:creator>
      <dc:date>2023-10-24T12:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Trace ID is overriding OTEL trace ID (https://one.dynatrace.com/hc/en-us/requests/204674)</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/228835#M29607</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14222"&gt;@Gerhard_Stoebic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. Just want to confirm if you are recommending using b3 headers for otel instrumentation to avoid trace ID overriding. This way it will not interact with Dynatrace ID.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:18:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/228835#M29607</guid>
      <dc:creator>tarun_kumar_aga</dc:creator>
      <dc:date>2023-11-15T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Trace ID is overriding OTEL trace ID (https://one.dynatrace.com/hc/en-us/requests/204674)</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/228846#M29609</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Yes, using propagation headers not used by OneAgent and disabling OpenTelemetry integration should decouple the two tools.&lt;/P&gt;&lt;P&gt;OneAgent is not using B3 headers as of now. OneAgent for AWS lambda has currently no option to disable use of W3C TraceContext (other code modules have this possibility) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this recommendation sounds a bit unusual because usually we recommend to use W3C TraceContext.&lt;/P&gt;&lt;P&gt;Your request is special because OneAgent should &lt;STRONG&gt;not&lt;/STRONG&gt; interact with OpenTelemetry. Usually the request is that both tools interact (e.g. OneAgent continues a trace from a process monitored by OTel).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But your request is different that it&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:53:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/228846#M29609</guid>
      <dc:creator>Gerhard_Stoebic</dc:creator>
      <dc:date>2023-11-15T19:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Trace ID is overriding OTEL trace ID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/235551#M30771</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14222"&gt;@Gerhard_Stoebic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your statement you mentioned "OneAgent is not using B3 headers as of now. OneAgent for AWS lambda has currently no option to disable use of W3C TraceContext (&lt;EM&gt;&lt;STRONG&gt;other code modules have this possibility&lt;/STRONG&gt;&lt;/EM&gt;) ."&lt;/P&gt;&lt;P&gt;Is it possible to disable x-dynatrace header for containers and use traceparent instead of it? so that we are expecting entire transaction uses only traceparent instead of x-dynatrace header.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 15:54:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/235551#M30771</guid>
      <dc:creator>tarun_kumar_aga</dc:creator>
      <dc:date>2024-01-25T15:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Trace ID is overriding OTEL trace ID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/235591#M30783</link>
      <description>&lt;P&gt;There is currently no option to disable x-dynatrace header only for containers. It is possible to disable it for non AWS lambda code modules for protocols where OA supports W3C tracecontext (GRPC and HTTP as of now).&lt;/P&gt;&lt;P&gt;Please note that using traceparent only for OneAgent will result in limitations like missing connections in service flow or inconsistent sampling decisions/extrapolation.&lt;/P&gt;&lt;P&gt;OneAgent either needs x-dynatrace or traceparent + tracestate to utilize the full feature set.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 08:55:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Trace-ID-is-overriding-OTEL-trace-ID/m-p/235591#M30783</guid>
      <dc:creator>Gerhard_Stoebic</dc:creator>
      <dc:date>2024-01-26T08:55:58Z</dc:date>
    </item>
  </channel>
</rss>

