This topic describes how to install and configure the Alibaba Cloud Python agent in a UV-based package management environment. After installing the agent, you can enable performance monitoring, tracing, and exception detection for your Python application.
Step 1: Download and extract the Python agent package
Download the Python agent package.
wget http://arms-apm-${regionID}.oss-${regionID}.aliyuncs.com/aliyun-python-agent/aliyun-python-agent.tar.gzReplace
regionIDwith your region ID. For example:wget http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/aliyun-python-agent/aliyun-python-agent.tar.gzExtract the Python agent package.
tar -zxvf aliyun-python-agent.tar.gz
Step 2: Use UV to install the Python agent package
uv pip install target/*.whlStep 3: Use UV to run your Python application
uv run aliyun-instrument python3 app.pyReferences
该文章对您有帮助吗?