Python Troubleshooting
Python Troubleshooting
Why am I not seeing data in Scout?
Contact support@scoutapm.com with: - A link to your app in Scout (if applicable) - Your Python version - Framework name and version (e.g., Flask 2.0) - Scout debug logs
How do I enable debug logging?
Configure Python’s logging module for the scout_apm logger:
import logginglogging.getLogger("scout_apm").setLevel(logging.DEBUG)
For more verbose output, set the Core Agent log level:
Config.set(core_agent_log_level="debug")
How do I get Core Agent trace logs?
For detailed Core Agent diagnostics, set:
Config.set(core_agent_log_level="trace")
How do I log request payloads for debugging?
To see what’s being sent to the Core Agent:
Config.set(log_payload_content=True)
Or via environment variable:
exportSCOUT_LOG_PAYLOAD_CONTENT=true
Only enable this for debugging as it increases log volume significantly.
What is a transaction?
A transaction is any time your application handles a request or runs a background job. View your transaction volume on the usage page.
How do I ignore health check endpoints?
Add paths to the ignore configuration:
Config.set(ignore=["/health-check/", "/ping/"])
Or via environment variable:
exportSCOUT_IGNORE='/health-check/,/ping/'
Note: When transactions are ignored, no metrics or traces are collected for those requests.