Skip to content

docs: 新增《可观测接入指导》——接入路线选型 - #29

Open
TangJia025 wants to merge 21 commits into
mainfrom
docs/observability-onboarding-guide
Open

TangJia025 wants to merge 21 commits into
mainfrom
docs/observability-onboarding-guide

Conversation

@TangJia025

@TangJia025 TangJia025 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

新增 docs/可观测接入指导.md,面向基础设施各类业务说明接入本套可观测体系的路线。

为什么按「观测对象」而不是「仓库」划分

现有文档(spec/、设计文档、微服务可观测目标)面向的是 obs-sdk 覆盖的 26 个四语言服务。但实际要接的还有:面向用户的开源软件、CI 资源与 CI workflow——它们没有 SDK 可用,却同样需要日志、指标、拨测。本文先给出统一的选型入口。

当前内容

路线选型表:

路线 典型对象 核心手段
自研微服务接入 Go / Python / Node / Java 自研服务 obs-sdk 四个语言包
开源软件接入 Discourse、Etherpad 等面向用户的开源软件 官方 exporter + 黑盒拨测,不改代码
CI 资源 runner / 执行机、squid、buildkit、karmada 资源层指标,复用平台采集
CI workflow GitHub Actions / Jenkins / CodeArts 流水线与作业 作业级指标(Pushgateway)+ 事件日志

四类对象各建一章,每章下分「指标接入」「日志接入」两节,正文待填:

    1. 自研微服务接入 → 2.1 指标接入 / 2.2 日志接入
    1. 开源软件接入 → 3.1 指标接入 / 3.2 日志接入
    1. CI 资源 → 4.1 指标接入 / 4.2 日志接入
    1. CI workflow → 5.1 指标接入 / 5.2 日志接入

resolve https://github.com/opensourceways/backlog/issues/1938

🤖 Generated with Claude Code

AI 使用声明

当前 PR 是否有 AI 参与:

  • 否
  • 是
    1. AI Agent 平台:Claude Code
    2. AI 模型:deepseek-v4-flash
    3. Prompt 上下文:用户要求新建《可观测接入指导》,按评审意见收敛为接入路线选型,并建立各对象的指标/日志接入章节目录

按「观测对象」而非「仓库」划分四条接入路线(四语言 SDK / 非四语言 /
上游组件 / 平台作业),给出接入等级 L1~L3、部署级字段注入、暴露与采集口径、
四黄金信号选指标、上线三步验证法与故障速查表。

- 契约定义仍以 spec/ 为准,本文只讲做法
- 非四语言与上游组件部分明确「不 patch 核心、只挂扩展点」
- 链接均指向 main 上已存在的文档,避免悬空引用

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

Welcome To opensourceways Community

Hey @TangJia025 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: infratructure ,
and any of the maintainers: @GeorgeCao-hw, @TangJia025, @pkking, @zhongjun2 ,
and any of the committers: @GeorgeCao-hw, @TangJia025, @pkking, @zkhzkhz .

@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

按评审意见,把原文的「批处理与平台型作业」统一改为
「CI 资源与托管平台 workflow」,明确 D 类对象是
Jenkins / GitHub Actions / CodeArts 流水线与托管平台上的 workflow,
而不是泛指的批处理作业。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

按评审意见清空 §2 及之后的内容,只保留标题、§0 三条底线
与 §1 四条接入路线的选型表。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@TangJia025 TangJia025 changed the title docs: 新增《可观测接入指导》——面向基础设施各类业务的接入指引 docs: 新增《可观测接入指导》——接入路线选型 Oct 19, 2026
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

按评审意见删除「接入的三条底线」一节,文档只保留接入路线选型。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

- 去掉「非四语言接入」一类(其手段与组件接入相同)
- 「CI 资源与托管平台 workflow」拆为「CI 资源」与「CI workflow」两类
- 表下注解改为:workflow 跑在 CI 资源上,资源侧平台采、作业侧自报

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

按评审意见,B 类只覆盖 Discourse、Etherpad 这类有独立用户入口的上游服务;
PostgreSQL / Redis / Nginx 等基础组件不在本文范围,指标由资源层统一采集。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

按评审意见把「组件接入」改为「开源软件接入」,与 A「自研微服务接入」对称;
边界注里的「基础组件」同步改为「基础软件」。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

四类对象各建一章,每章下分「指标接入」「日志接入」两节,
正文暂留空,待逐章补充。路线不再用 A/B/C/D 编号。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

TangJia025 and others added 2 commits October 19, 2026 12:53
指标接入:部署级字段初始化、业务指标注册、中间件与 /metrics 暴露、
community 请求级覆盖、自检。
日志接入:初始化、msg 常量 + kv 规则、Java 样例配置、请求上下文、
stdout 采集与 LTS 检索、自检。
路线表补充实际服务示例,并补 Go/Java/Python 服务清单。

Co-Authored-By: Claude Code <noreply@anthropic.com>
路线表的典型对象列已给出示例,不再单独展开 24 个服务清单元数据。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

1 similar comment
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

配置环境变量:保留四字段表,补 robot-universal-review 的 values 示例
与注入口径;上报代码:初始化、指标注册、中间件、community 覆盖、自检。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

同时按评审意见收敛章首表述与配置项说明。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

渲染后的页面不显示 fence 的 info string,故在每个代码块上方显式标注语言。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

初始化注册表与注册指标都是进程启动一次,上报发生在业务事件时,分开说明。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

Go: robot-universal-welcome#86;Python: forum-reply-robot#189;
Java: om-webserver#261;Node 暂无自研服务,说明归入开源软件接入路线。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

2.2.1 复用 2.1.1 的 OBS_* 配置;2.2.2 按语言给出初始化/输出/上下文/
写 stdout 四步,并附 Go/Python/Java 示例 PR。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants