LoongSuite Python Agent Distro
Project description
LoongSuite Distro
LoongSuite Python Agent 的 Distro 包,提供 LoongSuite 定制的 OpenTelemetry 配置与工具链。
Installation
pip install loongsuite-distro
可选依赖(OTLP exporter):
pip install loongsuite-distro[otlp]
Features
- LoongSuite Distro:提供
OTEL_PYTHON_DISTRO=loongsuite对应的 OpenTelemetry 配置入口。 - LoongSuite Bootstrap:提供
loongsuite-bootstrap/loongsuite-instrument命令行能力。
Recommended usage
与仓库根目录 README.md 保持一致,推荐流程如下:
- 安装 distro:
pip install loongsuite-distro
- 安装 instrumentations(任选其一):
# 方式 A:安装 release 对应的全部组件
loongsuite-bootstrap -a install --latest
# 方式 B:按当前环境自动探测,仅安装命中的埋点
loongsuite-bootstrap -a install --latest --auto-detect
# 指定版本示例
loongsuite-bootstrap -a install --version X.Y.Z
- 使用
loongsuite-instrument启动应用:
loongsuite-instrument \
--traces_exporter console \
--metrics_exporter console \
--service_name demo \
python demo.py
Manual configuration
也可以通过环境变量显式指定 distro:
export OTEL_PYTHON_DISTRO=loongsuite
export OTEL_PYTHON_CONFIGURATOR=loongsuite
References
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loongsuite_distro-0.3.0-py3-none-any.whl.
File metadata
- Download URL: loongsuite_distro-0.3.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8247e0c8ea6ae4668677d40fcad397410b3eb4519cf76f1fb7fd9f2b16942210
|
|
| MD5 |
9077e87958a7d057ff420a9953f72087
|
|
| BLAKE2b-256 |
92ab4a4be392e4cb901bcfe202b7120d0883e3d9de64b8223b878422b528bcdf
|