<?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>article Enable monitoring for Python applications using build-time injection (before OneAgent version 1.315) in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Enable-monitoring-for-Python-applications-using-build-time/ta-p/277696</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1&gt;Summary&lt;/H1&gt;
&lt;P&gt;To enable monitoring for PaaS OneAgent installations (&lt;A href="https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/deployment/other/container-buildtime#deploy" target="_blank" rel="noopener"&gt;via build-time injection&lt;/A&gt;) for Python-based applications before OneAgent version 1.315, some additional on-the-fly configuration is required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Problem&lt;/H1&gt;
&lt;P&gt;By default, Python monitoring is not enabled for PaaS OneAgents before version 1.315.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Resolution&lt;/H1&gt;
&lt;P&gt;Please add the following lines to your Dockerfile (after those indicated in the documentation):&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;ENV DT_AGENTTYPE_OVERRIDE python=on

# rxutiagentproc.conf override to append Python entries
RUN echo "[agentType]\npython on\n\n[general]\npythonInjection on" &amp;gt;&amp;gt; /opt/dynatrace/oneagent/agent/conf/ruxitagentproc.conf&lt;/LI-CODE&gt;
&lt;P&gt;and proceed with the build &amp;amp; deployment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;What's next&lt;/H1&gt;
&lt;P&gt;Monitoring for Python applications will be enabled by default starting with OneAgent version 1.315.&lt;/P&gt;
&lt;P&gt;If you have any problems enabling this, please create a chat or support ticket and provide the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the Dockerfile that was updated&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;all logs from /opt/dynatrace/oneagent/logs&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;mention this article&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Jun 2025 08:53:02 GMT</pubDate>
    <dc:creator>Andriy_Sidorkin</dc:creator>
    <dc:date>2025-06-03T08:53:02Z</dc:date>
    <item>
      <title>Enable monitoring for Python applications using build-time injection (before OneAgent version 1.315)</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Enable-monitoring-for-Python-applications-using-build-time/ta-p/277696</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1&gt;Summary&lt;/H1&gt;
&lt;P&gt;To enable monitoring for PaaS OneAgent installations (&lt;A href="https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/deployment/other/container-buildtime#deploy" target="_blank" rel="noopener"&gt;via build-time injection&lt;/A&gt;) for Python-based applications before OneAgent version 1.315, some additional on-the-fly configuration is required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Problem&lt;/H1&gt;
&lt;P&gt;By default, Python monitoring is not enabled for PaaS OneAgents before version 1.315.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Resolution&lt;/H1&gt;
&lt;P&gt;Please add the following lines to your Dockerfile (after those indicated in the documentation):&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;ENV DT_AGENTTYPE_OVERRIDE python=on

# rxutiagentproc.conf override to append Python entries
RUN echo "[agentType]\npython on\n\n[general]\npythonInjection on" &amp;gt;&amp;gt; /opt/dynatrace/oneagent/agent/conf/ruxitagentproc.conf&lt;/LI-CODE&gt;
&lt;P&gt;and proceed with the build &amp;amp; deployment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;What's next&lt;/H1&gt;
&lt;P&gt;Monitoring for Python applications will be enabled by default starting with OneAgent version 1.315.&lt;/P&gt;
&lt;P&gt;If you have any problems enabling this, please create a chat or support ticket and provide the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the Dockerfile that was updated&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;all logs from /opt/dynatrace/oneagent/logs&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;mention this article&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Jun 2025 08:53:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Enable-monitoring-for-Python-applications-using-build-time/ta-p/277696</guid>
      <dc:creator>Andriy_Sidorkin</dc:creator>
      <dc:date>2025-06-03T08:53:02Z</dc:date>
    </item>
  </channel>
</rss>

