Install the Python agent using Contrast

To install the Python agent using Contrast:

  1. In the Contrast web application, select Add new in the top right corner.

  2. Select the Python agent in the drop-down menu then select Download agent.

  3. Add the contrast-python-agent-[version].tar.gz to the application's requirements.txt.

    ./path/to/contrast-python-agent-[version].tar.gz

    Then install normally:

    pip install -r requirements.txt

    OR

    Manually install the agent by running:

    pip install ./path/to/contrast-python-agent-[version].tar.gz
  4. Configure middleware.

  5. Configure the agent.

  6. Verify that autoconf is installed on the system where you will run the agent.

  7. Start and exercise your application as normal.

  8. Verify that your server is registered in Contrast and that it reports an instance of your application.