New Relic and Pyramid

While developing an application we decided to try New Relic, this is how we implemented their agent into pyramid.

import newrelic.agent
newrelic.agent.initialize('path/to/newrelic.ini', 'development')

application = config.make_wsgi_app()
return newrelic.agent.wsgi_application()(application)

Tags:

Leave a Reply