Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
11833 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
5
Feb 17
13024
2
Mei 15
4849
0
Mei 18
3833
0
Okt 16
8339
1
Mei 16
8948