Skip to content

feat: 按需启用浏览器 OTLP 与跨 Peer Job 追踪 - #125

Merged
xiaoland merged 6 commits into
mainfrom
codex/observability-foundation
Oct 3, 2026
Merged

xiaoland merged 6 commits into
mainfrom
codex/observability-foundation

Conversation

@xiaoland

@xiaoland xiaoland commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

新增遥测默认关闭,现有 Job/PG 日志查询保留。连接显式开启后,以标准 OTel/OTLP protobuf 导出元数据,跨 Peer 请求传播 W3C context,Job 同事务保存提交 carrier,执行创建独立 Trace+Link。私密写入凭据只在服务端,可选 core relay 使用连接的短效 Peer JWT。

真实预览修复了两处问题:共享配置读取由 1.5 秒调整为 10 秒,直发/relay exporter 分别为 10/35 秒;时延指标标签与秒分桶对齐 Core,跨 Peer 可直接聚合。关闭等待仍为 1.5 秒,不承诺浏览器退出时排空。

验证:

  • 实际 Chromium+PostgREST:mixed 开关、异步并发、非法/超限 carrier、失败/取消/timeout、metrics-only、重定向和认证边界。
  • 实际浏览器业务模块→PR fix: 采用 UI Web 2.2.1 交付表单修复 #124 的隔离 PostgREST→Heroku Core Job 执行→Grafana:三信号和精确 Span Link 经 Viewer API 独立读回。Pages 预览实际显示成功状态及失败 Job 的 PG 日志;不是 Pages UI 发起 Job 的验收。
  • Cloud 对最终时延指标严格验证 operation/outcome、全部显式桶边界、count=1、sum=0.0263s。
  • 配置始终不返回时约 10 秒后停用遥测;OTLP 上游拒连及再次关闭均保持业务结果和 PG 日志。预览私密出口与共享配置已恢复。
  • CI Workspace contract、web E2E、webext E2E、Pages preview 通过。既有设置备份测试覆盖新增默认值与恢复后的关闭状态;本地原有未跟踪 skill 保持原样。

依赖:共享契约 InKCre/docs#33 已合并,共享引用为 7916312。Core 功能项 InKCre/core-py#124 与 0.7.0 Release PR InKCre/core-py#123 均已合并,生产交付及 stable 晋升成功。已通过正式 stable 镜像 sha256:c26e74dd6925e643e39490db739018e86897f4a07bd17da7dc3f8cffb67dce25 重新生成数据库契约,生成结果无差异;CI 已重新运行以验证正式准入版本。

回退:关闭连接本地遥测并重新初始化即可停止新增采集,PG 与既有 carrier 保留。网络中断、冻结、页面关闭仍可丢失尾部。Grafana 当前账号标记 free-trial,稳定 Free 额度、真实模型、webext 独立遥测生命周期及全活跃部署覆盖仍未宣称通过。合并后的既有 Pages workflow 负责生产交付,默认不开启遥测;未变更套餐。

@xiaoland
xiaoland marked this pull request as ready for review October 3, 2026 12:56
@xiaoland
xiaoland merged commit 5bc6b05 into main Oct 3, 2026
12 checks passed

This branch was successfully deployed

1 active deployment
preview — 6026b2d9 Deployed Oct 3, 2026 by xiaoland via Retire exact Pages preview #105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant