# Enable monitoring for Python applications using build-time injection (before OneAgent version 1.315)

**URL:** <https://community.dynatrace.com/t/enable-monitoring-for-python-applications-using-build-time-injection-before-oneagent-version-1-315/51732>\
**Category:** Troubleshooting\
**Tags:** python, oneagent, paas, docker\
**Created:** [May 27, 2025, 8:50am UTC](https://community.dynatrace.com/t/enable-monitoring-for-python-applications-using-build-time-injection-before-oneagent-version-1-315/51732 "2025-05-27T08:50:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andriy\_Sidorkin](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Andriy\_Sidorkin](https://community.dynatrace.com/u/Andriy_Sidorkin)\
**Post date:** [May 27, 2025, 8:50am UTC](https://community.dynatrace.com/t/enable-monitoring-for-python-applications-using-build-time-injection-before-oneagent-version-1-315/51732/1 "2025-05-27T08:50:57Z")

</div>

# Summary

To enable monitoring for PaaS OneAgent installations ([via build-time injection](https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/deployment/other/container-buildtime#deploy)) for Python-based applications before OneAgent version 1.315, some additional on-the-fly configuration is required.

# Problem

By default, Python monitoring is not enabled for PaaS OneAgents before version 1.315.

# Resolution

Please add the following lines to your Dockerfile (after those indicated in the documentation):

```python
ENV DT_AGENTTYPE_OVERRIDE python=on

# rxutiagentproc.conf override to append Python entries
RUN echo "[agentType]\npython on\n\n[general]\npythonInjection on" >> /opt/dynatrace/oneagent/agent/conf/ruxitagentproc.conf

```

and proceed with the build & deployment.

# What’s next

Monitoring for Python applications will be enabled by default starting with OneAgent version 1.315.

If you have any problems enabling this, please create a chat or support ticket and provide the following:

- the Dockerfile that was updated
- all logs from /opt/dynatrace/oneagent/logs
- mention this article
