<?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: How to get the trace_id and span_id using the OneAgent SDK for Python? in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/200031#M3979</link>
    <description>&lt;P&gt;Funny coincidence &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; we just did a POC using OpenTelemetry and decided we'll switch to it.&lt;/P&gt;&lt;P&gt;While searching the Dynatrace documentation we saw that a lot of it have changed toward pointing to Opentelemetry and tried&amp;nbsp; it.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 17:33:40 GMT</pubDate>
    <dc:creator>AymericM</dc:creator>
    <dc:date>2022-12-07T17:33:40Z</dc:date>
    <item>
      <title>How to get the trace_id and span_id using the OneAgent SDK for Python?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/199893#M3977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I see in the OneAgent SDK documentation that there is a way to get a trace_i and span_id from the&amp;nbsp;TraceContextInfo&lt;SPAN&gt;&amp;nbsp;(&lt;A href="https://github.com/Dynatrace/OneAgent-SDK/blob/master/README.md#trace-context" target="_blank" rel="noopener"&gt;https://github.com/Dynatrace/OneAgent-SDK/blob/master/README.md#trace-context&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I may be missing something but I can't find how to do it with the OneAgent SDK for Python.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to enrich logs with trace_id and span_id dierctly from a Python script/app ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:23:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/199893#M3977</guid>
      <dc:creator>AymericM</dc:creator>
      <dc:date>2022-12-07T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the trace_id and span_id using the OneAgent SDK for Python?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/200020#M3978</link>
      <description>&lt;P&gt;Curious to know too - it seems the TraceContextInfo is implemented only in OneAgent SDK for .NET. OneAgent SDK for Python is based on the SDK for C/C++ which does not have the feature.&lt;BR /&gt;&lt;BR /&gt;I suppose switching to OpenTelemetry is not a simple solution here as you likely already have your code dependent on OneAgent SDK. But in a long term I'd consider switching, since due to Otel being a vendor-angostic standard, OneAgent SDKs won't have much attention anymore.&lt;BR /&gt;&lt;BR /&gt;FYI -&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4565"&gt;@_Alexander_&lt;/a&gt;&amp;nbsp; - are they any plans to get the other SDKs on part with this feature (NodeJS/Java/C++)?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 17:21:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/200020#M3978</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-12-07T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the trace_id and span_id using the OneAgent SDK for Python?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/200031#M3979</link>
      <description>&lt;P&gt;Funny coincidence &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; we just did a POC using OpenTelemetry and decided we'll switch to it.&lt;/P&gt;&lt;P&gt;While searching the Dynatrace documentation we saw that a lot of it have changed toward pointing to Opentelemetry and tried&amp;nbsp; it.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 17:33:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/200031#M3979</guid>
      <dc:creator>AymericM</dc:creator>
      <dc:date>2022-12-07T17:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the trace_id and span_id using the OneAgent SDK for Python?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/200702#M3980</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;mentioned - OpenTelemetry would be the immediate way to go. But the good news is that we're bringing&amp;nbsp;&lt;SPAN&gt;TraceContextInfo&amp;nbsp;to C/C++ and Python around the end of January. So, if you can wait until then, that's another way to go.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:40:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-get-the-trace-id-and-span-id-using-the-OneAgent-SDK-for/m-p/200702#M3980</guid>
      <dc:creator>arlindo</dc:creator>
      <dc:date>2022-12-16T15:40:40Z</dc:date>
    </item>
  </channel>
</rss>

