We are trying to implement new relic ( http://www.newrelic.com ) on a dev server to test openerp's performance .
The below installation steps of newrelic asks us to to modify WSGI application file . I am new to openerp and I can't seem to figure this out. Any help will be highly appreciated.
Within the same WSGI application file, you then need to add a wrapper around the actual WSGI application entry point. If the WSGI application entry point is a function declared in the file itself, then you can use a decorator.
@newrelic.agent.wsgi_application()
def application(environ, start_response):
...
If the WSGI application entry point is a function or object imported from a different module, then you can wrap it in pre decorator style.
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
application = newrelic.agent.wsgi_application()(application)
You should then restart the specific WSGI hosting mechanism you are using to reload the WSGI script file or module.