This release is a pre-release and may not be stable for production use.
pyxis-harness-otel
agent 回合的 OpenTelemetry 导出(GenAI 语义约定),目标为 OTLP/HTTP 后端,如 Langfuse。
| 项 | 值 |
|---|---|
| 条目 | otel(toolkit bundle) |
| 服务 | OtelService,ctx.otel |
| 注入 | http、webui |
| 路由前缀 | /api/otel |
文件
| 文件 | 内容 |
|---|---|
__init__.py |
导出 |
service.py |
OtelService:配置、回合结束钩子、可观测的状态 / 设置 / 测试路由 |
config.py |
插件配置 |
pipeline.py |
OTLP 端点解析与导出管线:tracer provider、批处理器、计数导出器 |
spans.py |
一个回合的 GenAI span 树 |
client.js |
浏览器模块 |
服务
| 成员 | 契约 |
|---|---|
status() |
配置(不返回密钥)、管线状态、导出计数 |
save() |
把设置写入 profile,原地重启管线 |
test() |
发送测试 span(连通性、负载、GenAI 形状),并在 Langfuse 上校验 |
| 配置 | 含义 |
|---|---|
enabled |
导出回合;默认关闭 |
endpoint |
OTLP 基址;Langfuse 主机追加 /api/public/otel |
public_key |
Basic 认证的用户名(Langfuse pk-lf-…) |
secret_key |
Basic 认证密码的凭据引用(OTEL_SECRET_KEY) |
capture_content |
把消息、系统提示词、工具定义、参数、结果写到 span 上 |
content_max_chars |
单个属性的上限;超出的值变为 {"truncated": true, …} |
gzip |
压缩 OTLP 请求 |
max_export_batch_size |
每个导出请求的 span 数 |
service_name |
service.name 资源属性 |
Span 树(spans.py)
一个回合一条 trace,在 agent/turn-end 之后由回合记录构建。
| span 名 | 类型 | 上级 |
|---|---|---|
enter_ai_application_system |
ENTRY | 无 |
invoke_agent <preset> |
AGENT | ENTRY |
react step |
STEP | AGENT |
chat <model> |
LLM | STEP |
execute_tool <name> |
TOOL | STEP |
| 属性 | 规则 |
|---|---|
| 名称 | dsh-otel 所用的 GenAI 语义约定 |
| Langfuse 别名 | langfuse.session.id |
路由
| 路径 | 方法 |
|---|---|
status |
GET |
settings |
PUT |
test |
POST |
verify |
POST |
浏览器模块(client.js)
| 位置 | 内容 |
|---|---|
| 设置 →「可观测」 | 端点、密钥、开关、高级选项、发送测试、检查导出、状态与计数 |
Metadata
Release files for pyxis-harness-otel 0.1.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxis_harness_otel-0.1.0rc1-py3-none-any.whl | Python 3 | none | any | Details for pyxis_harness_otel-0.1.0rc1-py3-none-any.whl |
Release files / pyxis_harness_otel-0.1.0rc1-py3-none-any.whl
| Download URL | pyxis_harness_otel-0.1.0rc1-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1778939d3669fb6061586f6cd38563534dd8c95c0fef976458ef9dd537e8043c
|
|
BLAKE2b-256 checksum How to use checksums |
b23651bd78cb13e15181dd67b0c13e119b3da14556cb092e374eab2612272333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pyxis-harness-otel 0.1.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.