<?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 Re: Collecting all sub-traces for a Trace ID via API in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/237370#M2951</link>
    <description>&lt;P&gt;Exactly, I don't have access to the code. But I may create the context in the ISO 8583 message but not in http header. Otel is great but I am not sure when this switch will support Otel in the future.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Feb 2024 06:08:07 GMT</pubDate>
    <dc:creator>rudy_h</dc:creator>
    <dc:date>2024-02-17T06:08:07Z</dc:date>
    <item>
      <title>Collecting all sub-traces for a Trace ID via API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/209869#M2453</link>
      <description>&lt;P&gt;Hello Dynatrace community&lt;/P&gt;
&lt;P&gt;I'm looking for a solution for the following problem. It consists of two parts.&lt;/P&gt;
&lt;P&gt;1st: How can I get the Trace ID of a record that I can identify via Dynatrace API?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trace_ID.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11139iE677031BC2412D21/image-size/large?v=v2&amp;amp;px=999" role="button" title="Trace_ID.png" alt="Trace_ID.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2nd: If it is possible to get this information via API, how can I get all Span IDs (or other attributes) of the spans that are sharing the same Trace ID?&lt;/P&gt;
&lt;P&gt;Background: If several calls are content of a single distributed trace, all of them create an own span but share one trace ID. Further there is a relationship between called service and caller, that is mentioned as Parent span ID in the Dynatrace UI. The initial span doesn't have a parent. If want to collect this data via API like the UI does, I need these relationships.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 08:57:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/209869#M2453</guid>
      <dc:creator>Jan_Lerche</dc:creator>
      <dc:date>2023-04-17T08:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting all sub-traces for a Trace ID via API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/209900#M2454</link>
      <description>&lt;P&gt;Collected distributed trace data is not exposed via API, so the answer is - you cannot. At least not for a single Trace or list of traces.&amp;nbsp;&lt;BR /&gt;The closest approach I can think of would be using just the &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-entities-v2" target="_self"&gt;monitored entities API&lt;/A&gt; and using the relationsips between entities and use filters where possible, but you get just the "service flow" data - relations ships between services and not individual requests.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 07:51:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/209900#M2454</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2023-04-15T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting all sub-traces for a Trace ID via API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/237368#M2949</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rudy_h_0-1708138467843.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17656i4C12206696A45397/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rudy_h_0-1708138467843.png" alt="rudy_h_0-1708138467843.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can we get Span ID from the Service A using a Oneagent extension in the Middleware? After that I would like to create spans that will be part of Service A Span ID from the Oneagent extension. I would like to trace ISO 8583 message (non HTTP message).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 03:02:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/237368#M2949</guid>
      <dc:creator>rudy_h</dc:creator>
      <dc:date>2024-02-17T03:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting all sub-traces for a Trace ID via API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/237369#M2950</link>
      <description>&lt;P&gt;Span/Trace id data is not exposed via API.. yet. When Purepath/trace data in Grail is GA you will be able to get that information. Then is passing the query via api.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would assume that you want to create context on the fly. And wait until the trace is processed it could take some time, even if those are ms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Why not use Otel and do a context propagation of the trace_id and parent_id of the previous one? Or you don't have access to the code?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 03:27:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/237369#M2950</guid>
      <dc:creator>Dant3</dc:creator>
      <dc:date>2024-02-17T03:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting all sub-traces for a Trace ID via API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/237370#M2951</link>
      <description>&lt;P&gt;Exactly, I don't have access to the code. But I may create the context in the ISO 8583 message but not in http header. Otel is great but I am not sure when this switch will support Otel in the future.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 06:08:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Collecting-all-sub-traces-for-a-Trace-ID-via-API/m-p/237370#M2951</guid>
      <dc:creator>rudy_h</dc:creator>
      <dc:date>2024-02-17T06:08:07Z</dc:date>
    </item>
  </channel>
</rss>

