<?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 Python OneAgent OpenTelemetry integration in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/Python-OneAgent-OpenTelemetry-integration/m-p/276346#M3016</link>
    <description>&lt;P&gt;Does anyone from Dynatrace engineering (or anyone)&amp;nbsp; have a concrete code example that shows how a Python application can be manually instrumented with OpenTelemetry libraries but have the integration orchestrated by the OneAgent and not use any OTLP export?&lt;/P&gt;&lt;P&gt;Using this documentation link,&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/opentelemetry-oneagent" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/opentelemetry-oneagent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it seems like the instruction is focused on enabling the feature support in the Dynatrace UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other parts of the Dynatrace documentation, the OTLP export method for Python is explained with code examples. We've successfully got an OTLP export trial working (yay!)&amp;nbsp; , but we are unable to get the OneAgent integration working (traces never show up in Dynatrace).&lt;/P&gt;&lt;P&gt;So, I'm looking for a simple code exemplar from Dyantrace that shows how a Python app (would be great if it was FastAPI) would be instrumented for OneAgent integration.&lt;/P&gt;&lt;P&gt;My platform requirements are AWS EKS or AWS ROSA and I've&amp;nbsp; enabled the&amp;nbsp;&lt;SPAN class=""&gt;oneagent.dynatrace.com/inject:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"true"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;annotation on the pod,&amp;nbsp; and the code module injection seems to be working (good read-out from `k describe pod ...`) but the tracing instrumentation fails to produce any traces in Dynatrace.&amp;nbsp; With basically the same Python demo app, OTLP export works without issues.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;So again, looking for any fully-baked code example, however simple, to show me that this technology actually works and what I might have wrong in my instrumentation code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2025 00:06:02 GMT</pubDate>
    <dc:creator>roberto_camp1</dc:creator>
    <dc:date>2025-05-01T00:06:02Z</dc:date>
    <item>
      <title>Python OneAgent OpenTelemetry integration</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Python-OneAgent-OpenTelemetry-integration/m-p/276346#M3016</link>
      <description>&lt;P&gt;Does anyone from Dynatrace engineering (or anyone)&amp;nbsp; have a concrete code example that shows how a Python application can be manually instrumented with OpenTelemetry libraries but have the integration orchestrated by the OneAgent and not use any OTLP export?&lt;/P&gt;&lt;P&gt;Using this documentation link,&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/opentelemetry-oneagent" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/opentelemetry-oneagent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it seems like the instruction is focused on enabling the feature support in the Dynatrace UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other parts of the Dynatrace documentation, the OTLP export method for Python is explained with code examples. We've successfully got an OTLP export trial working (yay!)&amp;nbsp; , but we are unable to get the OneAgent integration working (traces never show up in Dynatrace).&lt;/P&gt;&lt;P&gt;So, I'm looking for a simple code exemplar from Dyantrace that shows how a Python app (would be great if it was FastAPI) would be instrumented for OneAgent integration.&lt;/P&gt;&lt;P&gt;My platform requirements are AWS EKS or AWS ROSA and I've&amp;nbsp; enabled the&amp;nbsp;&lt;SPAN class=""&gt;oneagent.dynatrace.com/inject:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"true"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;annotation on the pod,&amp;nbsp; and the code module injection seems to be working (good read-out from `k describe pod ...`) but the tracing instrumentation fails to produce any traces in Dynatrace.&amp;nbsp; With basically the same Python demo app, OTLP export works without issues.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;So again, looking for any fully-baked code example, however simple, to show me that this technology actually works and what I might have wrong in my instrumentation code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 00:06:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Python-OneAgent-OpenTelemetry-integration/m-p/276346#M3016</guid>
      <dc:creator>roberto_camp1</dc:creator>
      <dc:date>2025-05-01T00:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python OneAgent OpenTelemetry integration</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Python-OneAgent-OpenTelemetry-integration/m-p/276696#M3026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you inject the OA into your Python application, you can use our OneAgent span sensor to automatically capture spans created via OpenTelemetry without needing to send them via API.&lt;/P&gt;&lt;P&gt;Check this link for more details:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/ingest-from/opentelemetry/getting-started/traces/oneagent#expand--opentelemetry-python--6" target="_blank"&gt;https://docs.dynatrace.com/docs/ingest-from/opentelemetry/getting-started/traces/oneagent#expand--opentelemetry-python--6&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no need to specify anything additional in the code.&lt;/P&gt;&lt;P&gt;For further assistance, ask our AE/CSM for a session with our ACE Service Team to get help with it. There are some extra configurations on the Dynatrace UI as shown in the documentation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 19:49:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Python-OneAgent-OpenTelemetry-integration/m-p/276696#M3026</guid>
      <dc:creator>yanezza</dc:creator>
      <dc:date>2025-05-07T19:49:59Z</dc:date>
    </item>
  </channel>
</rss>

