The AppDynamics Python Agent is an Application Performance Monitoring (APM) tool that instruments Python applications to collect performance metrics, trace transactions, and identify bottlenecks. It provides deep visibility into web applications, background tasks, and database interactions. The current version is 26.4.0.8689, with frequent releases often aligning with major AppDynamics platform updates.
pip install appdynamicsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to instrument a basic Flask application with the AppDynamics Python Agent. The agent can be initialized programmatically using `appdynamics.agent.init()` or via an `appdynamics.cfg` file and environment variables. The recommended way to run the application with the agent is by prefixing your application's startup command with `pyagent run`. Environment variables are used for agent configuration to avoid hardcoding sensitive information.
Upgrade your Python environment to version 3.9 or higher. Python 3.14 is supported starting from agent version 26.4.0.
Verify that `APPDYNAMICS_CONTROLLER_HOST_NAME`, `APPDYNAMICS_CONTROLLER_PORT`, `APPDYNAMICS_AGENT_ACCOUNT_NAME`, and `APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY` environment variables are correctly set, or ensure your `appdynamics.cfg` file contains accurate values. Check agent logs for '401 Unauthorized' errors.
Refer to AppDynamics documentation for configuring agent logging levels, often involving modifications to `log4j2.xml` within the agent's bindeps directory. This is sometimes an unsupported workaround.
Ensure that all platform-specific dependencies are correctly installed and that the Java proxy can access necessary native libraries. Consult AppDynamics support or documentation for specific troubleshooting steps for your environment, especially on non-standard architectures like Apple M1.