Atatus provides transparency for API calls, and helps developers to find out if their API has any issue. Analyze the API metrics that our product provide and optimize critical API issues that causes REST API errors in your application.

We have made improvements to our latest Python agent to support analytics for all transactions.

Installation & Setup

First you need to install the Atatus Python agent. Follow the Python Agent installation steps

Once agent installation is done, enable the analytics option to true as follows

Django

  1. Add analytics flag in your settings.py:

    copy
    icon/buttons/copy
    # settings.py
    
    ATATUS = {
       'APP_NAME': 'Django App',
       'LICENSE_KEY': 'lic_apm_xxxxxxx',
       'ANALYTICS': True
    }
    

Flask

  1. Add analytics flag in your main file:

    copy
    icon/buttons/copy
    from atatus.contrib.flask import Atatus
    app = Flask(__name__)
    
    # Add atatus agent to your app.
    app.config['ATATUS'] = {
        'APP_NAME': 'Flask App',
        'LICENSE_KEY': 'lic_apm_xxxxxxx',
        'ANALYTICS': True
    }
    atatus = Atatus(app)
    

Capture Request Body

If you want to capture the request body automatically, then you have to set the capture body option.

'ANALYTICS': True,
'CAPTURE_BODY': 'all'

Capture Response Body

The response body won't be captured automatically.

To capture the response body, you can set it manually using set_response_body api.