Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
11885 Vizualizări

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.. 

Imagine profil
Abandonează
Cel mai bun răspuns

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.


 

Imagine profil
Abandonează
Autor

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 Răspunsuri Vizualizări Activitate
5
feb. 17
13043
2
mai 15
4884
0
mai 18
3880
0
oct. 16
8385
1
mai 16
8992