Installation steps
Install the Atatus python agent:
Option 1: Install the agent using pip.
copypip install atatusOption 2: Add
atatusto your project's requirements.txt file, and install the agent using pip.copy# requirements.txt atatuscopypip install -r requirements.txtAdd Atatus configuration to
main.pyfile.copy# main.py from fastapi import FastAPI import atatus from atatus.contrib.starlette import create_client, Atatus atatus_client = atatus.get_client() if atatus_client is None: atatus_client = create_client({ 'APP_NAME': 'FastAPI App', 'LICENSE_KEY': 'lic_apm_xxxxxxx', }) app = FastAPI() # Make sure to add Atatus middleware as the last middleware in your app app.add_middleware(Atatus, client=atatus_client)Restart your FastAPI server
+1-415-800-4104