Skip to Content
Menu
This question has been flagged
1 Reply
11149 Views

Dear all,

I am Using Odoo Version 8. Which WSGI server do this use?

My requirement was to write a WSGI middleware to work our framework with Elastic APM..

Also i need suggestions regarding any APM which works with Odoo ...

Any help regarding this is highly appreciated.. 

Avatar
Discard
Best Answer

yes odoo build on werkzeug as it is compatible with WSGI. ​

you can also run odoo with any WSGI lib you want like uwsgi or gunicorn.

ref: https://github.com/odoo/odoo/blob/8.0/openerp-wsgi.py

as you mention you want to create middleware to work with your framework.I would recommend create middleware using WSGI app expose by odoo
https://github.com/odoo/odoo/blob/8.0/openerp/service/wsgi_server.py#L212​​

I am interested to know what kind of middleware you want to create and what's a requirement of it.

I hope It will help.


 

Avatar
Discard
Author

Dear Ravi Gadhia,

Thanks for your reply..

we are trying to monitor how the ERP Application works, we are using the tool DataDog / Elastic APM [Application monitoring tools], With a proper application monitoring tool we could see how the components of the Application works ( like Interaction of Application with DB, and filestorage, also how the SQL query works )

To make the oddo work with the DataDog we need to do some changes in the odoo to talk to the datadog. They have given the instruction at the url

datadog:

https://docs.datadoghq.com/tracing/advanced/manual_instrumentation/?tab=python

Elastic APM:

https://www.elastic.co/blog/creating-custom-framework-integrations-with-the-elastic-apm-python-agent

So i want a middleware to integrate odoo with any on of these applications..

it seems datadog monkey patching lib and you have to runt odoo as script with datadog

ref: http://pypi.datadoghq.com/trace/docs/web_integrations.html#flask

so import ddtrace as soon as possible and start odoo with WSGI app

app is https://github.com/odoo/odoo/blob/8f4b98e67fe49516c0c830524de351db67c58357/odoo/service/wsgi_server.py#L102

For elastic you have to override request dispatcher with elasitc client

Related Posts Replies Views Activity
5
Feb 17
12445
2
May 15
4428
0
May 18
3378
0
Oct 16
7658
1
May 16
8360