# APM to make it work with Python

**URL:** <https://discuss.elastic.co/t/apm-to-make-it-work-with-python/199165>\
**Category:** APM\
**Tags:** python\
**Created:** [September 12, 2019, 3:38am UTC](https://discuss.elastic.co/t/apm-to-make-it-work-with-python/199165 "2019-09-12T03:38:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_John](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_john/32/53907_2.png) [@Joseph\_John](https://discuss.elastic.co/u/Joseph_John)\
**Post date:** [September 12, 2019, 3:38am UTC](https://discuss.elastic.co/t/apm-to-make-it-work-with-python/199165/1 "2019-09-12T03:38:00Z")

</div>

Hi All,  
I am evaluating APM for Java and Python based erp server, I was able to data from Java based Apllication Server like Jboss, tomcat and wildfly , the setup was able to be done with forum help

Now I am trying to see how could I get details for the Python based ERP such as Odoo and ErpNext  
From the url

> [[Introduction | APM Python Agent Reference [6.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/python/current/getting-started.html)]

I could see that framework of Odoo and ERPNext is not supported, In what way a used can use elasticsearch APM for this sectors for Odoo and ERPNext

thanks  
Joseph John

**Kibana version** :  
7.3.1  
**Elasticsearch version** :  
7.3.1  
**APM Server version** :  
7.3.1  
**APM Agent language and version** :  
elastic-apm-agent-1.9.0.jar  
**Browser version** :  
Firefox 69  
**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
deb  
**Fresh install or upgraded from other version?**  
Fresh

---

<div class="post-metadata">

**Author:** ![beniwohli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beniwohli/32/21256_2.png) [@beniwohli](https://discuss.elastic.co/u/beniwohli)\
**Post date:** [September 12, 2019, 10:56am UTC](https://discuss.elastic.co/t/apm-to-make-it-work-with-python/199165/2 "2019-09-12T10:56:18Z")

</div>

Hi @Joseph_John

I'm not familiar with either of those projects, but it looks like they both are built on top of the Werkzeug WSGI server. This should theoretically allow you to write a WSGI middleware that starts and ends transactions. It's not something we currently document or support, but I wrote a blog post a while ago that explains how you can instrument a framework. You can find it here: [https://www.elastic.co/blog/creating-custom-framework-integrations-with-the-elastic-apm-python-agent](https://www.elastic.co/blog/creating-custom-framework-integrations-with-the-elastic-apm-python-agent)

Unfortunately, this isn't a plug-and-play solution and will probably require quite a bit of code to get it to work.

---

<div class="post-metadata">

**Author:** ![Joseph\_John](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_john/32/53907_2.png) [@Joseph\_John](https://discuss.elastic.co/u/Joseph_John)\
**Post date:** [September 16, 2019, 4:02am UTC](https://discuss.elastic.co/t/apm-to-make-it-work-with-python/199165/3 "2019-09-16T04:02:37Z")

</div>

Thanks Beniwohli,  
I will try to explore and see what can I do with the help of our programers.  
will update the progress on the forum  
and thanks for the link

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 7, 2019, 12:02am UTC](https://discuss.elastic.co/t/apm-to-make-it-work-with-python/199165/4 "2019-10-07T00:02:49Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
