Registry / observability / appdynamics

appdynamics

JSON →
library26.4.1.8752pypypi✓ verified 83d ago

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 appdynamics
INSTALL
IMPORT
SIG · APPDYNAMICS
A
appdynamics
observabilitypythonv26.4.1.8752
Install
6.4s avg
Import
Disk
244MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v26.4.1.8752 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 245.7MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 6.4s · import 0.000s · 246MB
244MB installed
● package 244MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JSONFormatter
from appdynamics import JSONFormatter
pyagent run -c appdynamics.cfg -- python my_app.py
basic_json_logger
from appdynamics import basic_json_logger
get_version
from appdynamics import get_version

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.

import os from flask import Flask import appdynamics.agent # Initialize AppDynamics Agent (if not started via pyagent run) # Ensure APPDYNAMICS_CONTROLLER_HOST_NAME and other env vars are set # or use an appdynamics.cfg file. # For a quickstart, assume pyagent run wrapper is used or environment variables. appdynamics.agent.init( controller_host=os.environ.get('APPDYNAMICS_CONTROLLER_HOST_NAME', 'your-controller.saas.appdynamics.com'), controller_port=int(os.environ.get('APPDYNAMICS_CONTROLLER_PORT', 443)), controller_ssl_enabled=bool(os.environ.get('APPDYNAMICS_CONTROLLER_SSL_ENABLED', 'True').lower() == 'true'), account_name=os.environ.get('APPDYNAMICS_AGENT_ACCOUNT_NAME', 'customer1'), account_access_key=os.environ.get('APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY', 'YOUR_ACCESS_KEY'), application_name=os.environ.get('APPDYNAMICS_AGENT_APPLICATION_NAME', 'MyPythonApp'), tier_name=os.environ.get('APPDYNAMICS_AGENT_TIER_NAME', 'MyPythonTier'), node_name=os.environ.get('APPDYNAMICS_AGENT_NODE_NAME', 'my-python-node-1') ) app = Flask(__name__) @app.route('/') @appdynamics.agent.bt(name='HelloWorld') def hello_world(): return 'Hello, AppDynamics World!' @app.route('/error') @appdynamics.agent.bt(name='ErrorRoute') def error_route(): raise Exception('This is a simulated error!') if __name__ == '__main__': # In a real scenario, you'd typically run this with 'pyagent run' # For direct execution, ensure agent.init() is configured correctly. port = int(os.environ.get('PORT', 5000)) app.run(debug=True, host='0.0.0.0', port=port)
appdynamics --version
Debug
Known issues
breakingAppDynamics Python Agent version 26.4.0 deprecates support for Python 3.8 and has removed support for Python 3.7 and older versions.
fix
Upgrade your Python environment to version 3.9 or higher. Python 3.14 is supported starting from agent version 26.4.0.
affects: >=26.4.0
gotchaAgent startup can fail or data may not be reported to the Controller due to incorrect configuration of Controller Host, Port, Account Name, or Access Key.
fix
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.
affects: *
gotchaVerbose logging from the AppDynamics agent and its proxy can flood stdout, obscuring application-specific logs.
fix
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.
affects: *
gotchaIssues with the Java-based proxy agent failing to find native libraries (e.g., `jzmq`) can lead to agent startup failures, particularly on specific operating systems or architectures.
fix
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.
affects: *
Upgrade
Version history
26.4.1.8752latest on PyPI · released May 1, 2026
Audit
Dependencies
appdynamics-bindeps-*requiredContains platform-specific binary dependencies for the agent.
appdynamics-proxysupport-*requiredProvides the Java-based proxy component for agent communication.
Agent activity
42 hits · last 30 days
node
36
OpenAI (training)
1
Resources
appdynamics — pip install appdynamics · libregistry