# Is it planned to support Python (Framworks like Django, Flask etc.) without any changes to the code?

**URL:** <https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379>\
**Category:** Open Q&A\
**Tags:** python, oneagent\
**Created:** [October 23, 2019, 9:54am UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379 "2019-10-23T09:54:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdannewitz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sdannewitz/32/34149_2.png) [@sdannewitz](https://community.dynatrace.com/u/sdannewitz)\
**Post date:** [October 23, 2019, 9:54am UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/1 "2019-10-23T09:54:31Z")

</div>

Hi,

I alread read your blog entry [https://www.dynatrace.com/news/blog/from-monitoring-to-software-intelligence-for-flask-applications](https://www.dynatrace.com/news/blog/from-monitoring-to-software-intelligence-for-flask-applications/?_ga=2.219804249.1711942504.1571818098-977165314.1571151288) but still have a few question regarding monitoring python with the Dynatrace OneAgent.

1. Why is the agent not able to inject into the Python Application by itself, like it does for .NET, Java etc.?

2. Is it planned to support automatic injection into Python and if so, can you maybe name a release date? Changes to the code are always … meh.

I was really surprised when someone told me, that AppDynamics has a Python Agent which is able to monitor every request of a python app to the method level including db calls without any code changes. I couldn’t belive this because Dynatrace and the provided features are always better than AppD in my opinion. But yeah that seems to be true and I’m wondering if you guys are planning something similar as well.

Edit: for clarification purposes - AppDynamics needs a library and a pyagend which needs to be started with the application. It is not like the Dynatrace OneAgent automatic injection for e.g. JAVA but works without changing the code.

Kind regards,  
Stephan

---

<div class="post-metadata">

**Author:** ![alexandre\_marl2](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@alexandre\_marl2](https://community.dynatrace.com/u/alexandre_marl2)\
**Post date:** [October 23, 2019, 7:46pm UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/2 "2019-10-23T19:46:24Z")

</div>

Hello,

+1 ! It would be great … I discovered today dynatrace didn’t support auto instrumentation of Python (like PHP/.NET).

Even Instana is able to instrument Python out of the box, I can’t believe Dynatrace is not able to do it ! ([https://www.instana.com/blog/zero-effort-fully-automatic-distributed-tracing-for-python/](https://www.instana.com/blog/zero-effort-fully-automatic-distributed-tracing-for-python/) )

Is this something planned ? Any EAP coming ? (I really hope so :))

Thanks,

Alex

---

<div class="post-metadata">

**Author:** ![david\_lopes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_lopes/32/27273_2.png) [@david\_lopes](https://community.dynatrace.com/u/david_lopes)\
**Post date:** [October 23, 2019, 7:54pm UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/3 "2019-10-23T19:54:38Z")

</div>

AppDynamics DOES NOT automatically inject into python processes, you have to install the library and instrument the app. They even suggest you run a ‘pyagent’ wrapper around your application.

We are working on easier/automated instrumentation, for now there are some interesting projects like [GitHub - dynatrace-oss/OneAgent-SDK-Python-AutoInstrumentation: autodynatrace, a python library that implements automatic instrumentation using the OneAgent SDK for Python · GitHub](https://github.com/dlopes7/autodynatrace) that significantly reduce the effort to instrument your code.

---

<div class="post-metadata">

**Author:** ![sdannewitz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sdannewitz/32/34149_2.png) [@sdannewitz](https://community.dynatrace.com/u/sdannewitz)\
**Post date:** [October 23, 2019, 9:37pm UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/4 "2019-10-23T21:37:27Z")

</div>

Hi David,

it’s true that it won’t work without adding a library and running the pyagent as a wrapper but at the end no code changes are needed which is great.

Looking forward to the easier / automated injection for python. Any prediction for the release or eap?

Thank for pointing me to the autodynatrace project. I’ll have a look tomorrow.

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [October 23, 2019, 10:15pm UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/5 "2019-10-23T22:15:08Z")

</div>

Hi Stephan,

From the documentation of the others, they may not require explicit code change as such. However, the amount of configuration change required appears to be a similar burden for manual effort.

In any case, David’s autodynatrace for Python looks like a good option if it’s too much to add the small number of lines manually as per the blog post you linked for the Flask / WSGI-based app examples.

Andrew

---

<div class="post-metadata">

**Author:** ![sdannewitz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sdannewitz/32/34149_2.png) [@sdannewitz](https://community.dynatrace.com/u/sdannewitz)\
**Post date:** [October 25, 2019, 7:07am UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/6 "2019-10-25T07:07:16Z")

</div>

I looked the “autodynatrace” project and the effort to integrate it at least for flask is pretty low. What I would need is this kind of wrapper for Django and PostgreSQL but atm I’m not so familiar with Django so I probably won’t be able to write a wrapper by myself.

---

<div class="post-metadata">

**Author:** ![alexandre\_marl2](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@alexandre\_marl2](https://community.dynatrace.com/u/alexandre_marl2)\
**Post date:** [July 30, 2020, 5:26pm UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/7 "2020-07-30T17:26:41Z")

</div>

Hello Dynatrace PM,

Do you have any news about any support out of the box of Python language ? More and more microservices use python and you don’t support out of the box.

Thanks

Alex

---

<div class="post-metadata">

**Author:** ![sdannewitz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sdannewitz/32/34149_2.png) [@sdannewitz](https://community.dynatrace.com/u/sdannewitz)\
**Post date:** [July 31, 2020, 8:06am UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/8 "2020-07-31T08:06:38Z")

</div>

As far as I know - sadly not.  
We went with the [GitHub - dynatrace-oss/OneAgent-SDK-Python-AutoInstrumentation: autodynatrace, a python library that implements automatic instrumentation using the OneAgent SDK for Python · GitHub](https://github.com/dlopes7/autodynatrace) project but you need to adapt your code and probably do some tweaking to get the visibility you are looking for. But it improved by a lot.

For us, it is the only minus point using Dynatrace. All other features are top notch.

I really hope something will be announced in the near future. Other APM solutions support Python (Instana) and so should Dynatrace as the current leader of APM. Also Dynatrace plugins are based on Python only but the OneAgent can not instrument it automatically.

---

<div class="post-metadata">

**Author:** ![alexandre\_marl2](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@alexandre\_marl2](https://community.dynatrace.com/u/alexandre_marl2)\
**Post date:** [May 1, 2021, 11:10am UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/9 "2021-05-01T11:10:17Z")

</div>

Hello,  
I have seen python is now supported out of the box if the code is in AWS lambda function. Is one agent going be able to auto instrument the code soon by default like all others platform.

Thanks,

Alex

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [May 1, 2021, 4:17pm UTC](https://community.dynatrace.com/t/is-it-planned-to-support-python-framworks-like-django-flask-etc-without-any-changes-to-the-code/22379/10 "2021-05-01T16:17:00Z")

</div>

I would think that since AWS is the one executing the function, there might be a wrapper from their side adding **autodynatrace** to the code/env.
