Update your Datadog Python library package to at least version 1.2.2 (at least version 1.5.0 for Software Composition Analysis detection features). Run the following:
pip install --upgrade ddtrace
To check that your service’s language and framework versions are supported for ASM capabilities, see Compatibility.
Enable ASM when starting the Python application.
DD_APPSEC_ENABLED=true ddtrace-run python app.py
You can also use one of the following methods, depending on where your application runs:
for ((i=1;i<=250;i++)); do # Target existing service’s routes curl https://your-application-url/existing-route -A dd-test-scanner-log; # Target non existing service’s routes curl https://your-application-url/non-existing-route -A dd-test-scanner-log; done