Topik ini mencantumkan versi Python, komponen pihak ketiga, dan framework yang didukung oleh agen Python ARMS.
Versi Python yang didukung
Versi Protobuf yang didukung
Agen Python menggunakan Protobuf untuk mengenkripsi data selama pelaporan. Hal ini dapat berkonflik dengan versi Protobuf yang digunakan oleh aplikasi Anda. Agen Python mendukung rentang versi Protobuf pengguna berikut:
"protobuf>=3.20.0, < 7.0"Versi OpenTelemetry API yang didukung
Agen Python mengikuti spesifikasi OpenTelemetry API. Namun, versi OpenTelemetry API yang berbeda mungkin memiliki sedikit perbedaan. Agen Python mendukung rentang versi OpenTelemetry API berikut:
"opentelemetry-api <= 1.39.0"Catatan
Jika aplikasi Anda dijalankan dengan uvicorn, pilih salah satu metode konfigurasi berikut.
Metode 1: Tambahkan pernyataan berikut pada baris pertama file entri uvicorn untuk mengimpor agen Python.
from aliyun.opentelemetry.instrumentation.auto_instrumentation import sitecustomizeMetode 2: Ganti uvicorn dengan gunicorn dan tambahkan awalan
aliyun-instrumentke perintah gunicorn.Contoh:
uvicorn app:app --workers 4 --port=9090 --host 0.0.0.0Ubah perintah menjadi:
aliyun-instrument gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 app:appCatatanInstruksi aliyun-instrument menangani inisialisasi dan instrumentasi non-intrusif dari agen Python ARMS.
Jika aplikasi Anda dijalankan dengan uWSGI, lihat Instal agen Python untuk proyek Django atau Flask yang dijalankan dengan uWSGI.
Jika Anda menggunakan korutin gevent, Anda harus mengatur variabel lingkungan
GEVENT_ENABLE=true.Sebagai contoh, jika program Anda berisi kode berikut:
from gevent import monkey monkey.patch_all()Anda harus mengatur variabel lingkungan sebagai berikut:
GEVENT_ENABLE=true
Framework database
Versi plugin yang didukung
Aplikasi LLM (large language model)
Component | PyPI/GitHub repository URL | Earlier Version | Higher Version |
AgentScope | v1.0 | v1.0.10 | |
CrewAI | v0.1.0 | v1.7.2 | |
Dashscope | v1.0.0 | v1.2.1 | |
Dify | v0.12.8 | v1.11.2 | |
Dify Plugin | No restriction | No restriction | |
Google ADK | v1.2.1 | v1.21.0 | |
LangChain | v0.1.0 | v1.2.0 | |
LangGraph | No restriction | v1.0.5 | |
LiteLLM | v1.0.0 | v1.79.0 | |
Llama-index | v0.10.5 | v0.10.43 | |
MCP | v1.3.0 | v1.12.4 | |
OpenAI | v1.0.0 | v2.14.0 | |
OpenAI Agent | v0.3.3 | v0.6.6 | |
RagFlow | v0.14.0 | v0.21.1 |
Layanan LLM (large language model)
Component | PyPI/GitHub repository URL | Earlier versions | Later versions |
SGLang | v0.4.6 | v0.4.9.post6 | |
vLLM V0 | v0.5.0 | v0.8.4 | |
vLLM V1 | V0.8.2 | V0.10.0 |
Framework HTTP/RPC
Component | PyPI/GitHub repository URL | Older versions | Later versions |
aiohttp | v3.0 | No restriction | |
asgiref | v3.0 | No restriction | |
BlackSheep | v1.2.0 | No restriction | |
Click | v8.1.3 | < 9.0.0 | |
Django | v1.10 | No restriction | |
FastAPI | v0.58 | No restriction | |
Flask | v1.0 | No restriction | |
gRPC | v1.42.0 | No restriction | |
Jinja2 | v2.7 | < 4.0 | |
Requests | v2.0 | No restriction | |
Tornado | v5.1.1 | No restriction | |
WSGI | None | No restriction | No restriction |
Database vektor
Component | PyPI/GitHub repository URL | Lower Versions | Higher versions |
milvus | v2.4.1 | No restriction |
Framework memori
Component | PyPI/GitHub repository URL | Earlier version | Higher Version |
mem0 | v1.0.0 | v1.0.2 |
Framework database
Component | PyPI/GitHub repository URL | Earlier version | Later versions |
aiopg | v0.13.0 | < 2.0.0 | |
AsyncPG | v0.12.0 | No restriction | |
DBAPI | No specific dependency | No specific version requirement | No restriction |
MySQL | v8.0 | < 10.0 | |
MySQLClient | No specific version requirement | < 3 | |
psycopg | v3.1.0 | No restriction | |
psycopg2 | v2.7.3.1 | No restriction | |
Pydantic | v1.10.2 | No restriction | |
PyMongo | v3.1 | < 5.0 | |
PyMSSQL | v2.1.5 | < 3 | |
PyMySQL | No specific version requirement | < 2 | |
SQLAlchemy | v1.0.0 | < 2.1.0 | |
SQLite3 | No specific dependency | No specific version requirement | No restriction |
TortoiseORM | v0.17.0 | No restriction |
Plugin cache
Component | PyPI/GitHub repository URL | Lower Version | Higher Version |
Cassandra | v3.25 | No restriction | |
Elasticsearch | v6.0 | No restriction | |
PyMemcache | v1.3.5 | < 5 | |
Redis | v2.6 | No restriction | |
Scylla | v3.25 | No restriction |
Plugin message queue
Component | PyPI/GitHub repository URL | Previous Versions | Higher version |
aio-pika | No specific version requirement | No restriction | |
aiokafka | No specific version requirement | No restriction | |
Celery | v4.0 | < 6.0 | |
Confluent Kafka | v1.8.2 | v2.7.0 | |
Kafka Python | No specific version requirement | No restriction | |
Pika | No specific version requirement | No restriction | |
Remoulade | v0.50 | No restriction |
Plugin lainnya
Component | PyPI/GitHub repository URL | Lower Version | Higher Version |
asyncio | No specific dependency | No specific version requirement | No restriction |
Logging | No specific dependency | No specific version requirement | No restriction |
Loguru | v0.5.0 | v1.0 | |
Threading | No specific dependency | No specific version requirement | No restriction |