只需三步即可为 AI 应用引入可观测性:
Step 1:从 PyPI 安装 LoongSuite Distro
pip install loongsuite-distro
Step 2:安装探针包本体
loongsuite-bootstrap -a install --version 0.1.0
可通过 --auto-detect 按需安装,或用 --whitelist 精确控制。
Step 3:引导启动 AI 应用
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 \
OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental \
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=SPAN_ONLY \
loongsuite-instrument python app.py
启动后即可在 Jaeger、Langfuse、阿里云可观测等平台查看完整调用链、性能指标和上下文记录。




