This documentation contains requirements and tips for integrating the Python agent with an app that uses Waitress. To return to the general install instructions, go to Install the Python agent.
The Python agent provides support for the Waitress WSGI server. This includes automatically instrumenting the WSGI application entry point supplied to the Waitress server. The automatic instrumentation will work if the
waitress.serve() API function is used directly, or if
egg:waitress#main is specified as the server to use when starting up the web application using PasteDeploy.
You can use the recommended admin script integration method, as described in the general installation documentation.
If rather than manually integrating the call to startup the Waitress WSGI server in your application code, you are using PasteDeploy with a configuration similar to:
[server:main]use = egg:waitress#mainhost = 127.0.0.1port = 8080
all you instead need to do to start up your WSGI application is wrap the running of the
NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program paster serve production.ini
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.