In order to see trace information from your Python service on integration and end-to-end tests, you need to use the Scope agent to instrument your running service.
This service might run, for example, in a container on CI, or in a QA/staging environment.
scope-run CLI wrapper
To use the agent without modifying your source code, prefix the startup command of your WSGI-compliant server with
scope-run. For example:
scope-run gunicorn -w 4 myapp:app
scope-run uwsgi --http :9090 --wsgi-file foobar.py
scope-run python manage.py runserver
Installing the agent in your code
You can also install the agent in your application's code, as early in the execution as possible:
import scopeagent agent = scopeagent.Agent() agent.install()
gevent, make sure gevent's monkey patching happens before installing the Scope agent
After this, you can run the startup command of your WSGI-compliant server as before.