All Products
Search
Document Center

Application Real-Time Monitoring Service:Python components and frameworks supported by ARMS Application Monitoring

Last Updated:Mar 11, 2026

The ARMS Python agent supports Python 3.8 through 3.13. This page lists all supported third-party components and frameworks with their compatible version ranges.

Dependency requirements

Protobuf

The Python agent uses Protobuf to encode data during reporting. If your application also uses Protobuf, make sure the versions are compatible:

protobuf>=3.20.0, < 7.0

OpenTelemetry API

The Python agent follows the OpenTelemetry API specification. Supported version range:

opentelemetry-api <= 1.39.0

Runtime-specific configuration

uvicorn

If your application starts with uvicorn, use one of the following methods to initialize the ARMS Python agent.

Method 1: Import the agent in the entry file

Add this import as the first line of your uvicorn entry file:

from aliyun.opentelemetry.instrumentation.auto_instrumentation import sitecustomize

Method 2: Switch to gunicorn with the aliyun-instrument prefix

Replace uvicorn with gunicorn and prepend aliyun-instrument to the startup command.

Before:

uvicorn app:app --workers 4 --port=9090 --host 0.0.0.0

After:

aliyun-instrument gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 app:app
The aliyun-instrument command handles initialization and non-intrusive instrumentation of the ARMS Python agent.

uWSGI

If your application starts with uWSGI, see Install the Python agent for a Django or Flask project that starts with uWSGI.

gevent

If your application uses gevent coroutines, set the GEVENT_ENABLE=true environment variable.

For example, if your code includes:

from gevent import monkey
monkey.patch_all()

Set the environment variable:

GEVENT_ENABLE=true

Supported plugins

The following tables list supported components by category. The version columns indicate the tested range:

ColumnMeaning
Earliest supportedOldest version verified to work with the agent
Latest supportedNewest version verified to work with the agent

Large language model (LLM) applications

ComponentRepositoryEarliest supportedLatest supported
AgentScopePyPI1.01.0.10
CrewAIPyPI0.1.01.7.2
DashscopePyPI1.0.01.2.1
DifyGitHub0.12.81.11.2
Dify PluginGitHubNo restrictionNo restriction
Google ADKPyPI1.2.11.21.0
LangChainPyPI0.1.01.2.0
LangGraphPyPINo restriction1.0.5
LiteLLMPyPI1.0.01.79.0
Llama-indexPyPI0.10.50.10.43
MCPPyPI1.3.01.12.4
OpenAIPyPI1.0.02.14.0
OpenAI AgentPyPI0.3.30.6.6
RagFlowGitHub0.14.00.21.1

LLM services

ComponentRepositoryEarliest supportedLatest supported
SGLangPyPI0.4.60.4.9.post6
vLLM V0PyPI0.5.00.8.4
vLLM V1PyPI0.8.20.10.0

HTTP and RPC frameworks

ComponentRepositoryEarliest supportedLatest supported
aiohttpPyPI3.0No restriction
asgirefPyPI3.0No restriction
BlackSheepPyPI1.2.0No restriction
ClickPyPI8.1.3< 9.0.0
DjangoPyPI1.10No restriction
FastAPIPyPI0.58No restriction
FlaskPyPI1.0No restriction
gRPCPyPI1.42.0No restriction
Jinja2PyPI2.7< 4.0
RequestsPyPI2.0No restriction
TornadoPyPI5.1.1No restriction
WSGIBuilt-inNo restrictionNo restriction

Vector databases

ComponentRepositoryEarliest supportedLatest supported
MilvusPyPI2.4.1No restriction

Memory frameworks

ComponentRepositoryEarliest supportedLatest supported
mem0GitHub1.0.01.0.2

Database frameworks

ComponentRepositoryEarliest supportedLatest supported
aiopgPyPI0.13.0< 2.0.0
AsyncPGPyPI0.12.0No restriction
DBAPIBuilt-inNo restrictionNo restriction
MySQLPyPI8.0< 10.0
MySQLClientPyPINo restriction< 3
psycopgPyPI3.1.0No restriction
psycopg2PyPI2.7.3.1No restriction
PydanticPyPI1.10.2No restriction
PyMongoPyPI3.1< 5.0
PyMSSQLPyPI2.1.5< 3
PyMySQLPyPINo restriction< 2
SQLAlchemyPyPI1.0.0< 2.1.0
SQLite3Built-inNo restrictionNo restriction
TortoiseORMPyPI0.17.0No restriction

Caches and search engines

ComponentRepositoryEarliest supportedLatest supported
CassandraPyPI3.25No restriction
ElasticsearchPyPI6.0No restriction
PyMemcachePyPI1.3.5< 5
RedisPyPI2.6No restriction
ScyllaPyPI3.25No restriction

Message queues

ComponentRepositoryEarliest supportedLatest supported
aio-pikaPyPINo restrictionNo restriction
aiokafkaPyPINo restrictionNo restriction
CeleryPyPI4.0< 6.0
Confluent KafkaPyPI1.8.22.7.0
Kafka PythonPyPINo restrictionNo restriction
PikaPyPINo restrictionNo restriction
RemouladePyPI0.50No restriction

Logging and async

ComponentRepositoryEarliest supportedLatest supported
asyncioBuilt-inNo restrictionNo restriction
LoggingBuilt-inNo restrictionNo restriction
LoguruPyPI0.5.01.0
ThreadingBuilt-inNo restrictionNo restriction