feat: show per-event traffic errors

This commit is contained in:
2026-08-04 02:25:33 +08:00
parent d9a9fbaaad
commit 1db6b20dcc
5 changed files with 198 additions and 90 deletions
+7 -7
View File
@@ -69,9 +69,9 @@ Workspace 当前提供以下有界 projection
- `accounts`:账号摘要、quota window、当日用量和 provider/group/status 字段。
- `status`channel monitor 摘要。
- `sources`Pricing Monitor 已有的脱敏 source 余额与健康状态。
- `traffic.requests`:最近有界请求样本。
- `traffic.errors`有界错误聚合,保留聚合次数和状态链路
- `traffic.keys`:按 `Asia/Shanghai` 自然日聚合的 key 使用量,payload 同时携带统计日期和时区。
- `traffic.requests`仅 server6 的最近有界请求样本。
- `traffic.errors`server6/server4 的有界逐条错误事件,保留节点、时间、key/account、结构化错误类别和状态链路,不做错误分组或 per-row count
- `traffic.keys`仅 server6 `Asia/Shanghai` 自然日聚合的 key 使用量,payload 同时携带统计日期和时区。
投影允许展示 account/key 名称、稳定 ID、model、instance 和运维状态,但不包含 API
key 原文、access/refresh token、cookie、密码、数据库凭据或请求/响应正文。ID 始终按
@@ -117,10 +117,10 @@ Accounts 只在 canonical 名称 `{family}-quota-{source}` 或
provider、URL、display name 或模糊文本推断;source 为 error/stale 时保留名称和状态,
但不伪造 CNY 数值。
Requests 展示 key、account、model、token bucket、actual cost、first-token latency、
duration 和 decode throughput。Errors 展示 instance、聚合次数、status path、key、
account、model、phase/type/owner 和时间。Key usage、Requests、Errors 和对应 account
当天用量都使用 workspace 服务器声明的 `Asia/Shanghai` 自然日,不依赖客户端本地日期或滚动
Requests 展示 server6 的 key、account、model、token bucket、actual cost、first-token latency、
duration 和 decode throughput。Errors 展示 server6/server4 的逐条 instance、事件时间、status path、key、
account、model、phase/type/owner,不显示聚合次数。Key usage、Requests 和对应 account 当天用量只采用
server6Errors 保留双节点。所有 workspace Traffic 都使用服务器声明的 `Asia/Shanghai` 自然日,不依赖客户端本地日期或滚动
24 小时窗口;每个 Traffic projection 显式携带日期、时区和 `[00:00, 次日 00:00)` 边界。
## Legacy Direct