Repository navigation
docs(spec): 新增 OTLP 映射附录(对接 OTel 语义约定) - #40
Merged
Merged
Conversation
本文件是 spec 契约的映射附录而非契约本体:主契约(log/metrics/common-fields) 不动,只登记落盘字段将来接 OTLP 时对应的 OTel 语义键,避免届时返工。 - 部署级四字段 → Resource:service.name / deployment.environment.name / service.instance.id;community 因请求级可变,只能作属性(osw.community), 不能进 Resource - 日志字段 → LogRecord:trace_id / span_id 必须落原生字段而非 attributes; logger 拆 code.file.path + code.line.number;event 落 eventName(event.name 属性在 v1.44.0 已废弃) - 指标:http_server_request_duration_seconds 已等于 semconv 的翻译结果; 登记 label 改名与 int 类型转换;说明 http_server_requests_total 无 semconv 对应 - gen_ai.* 已迁出主仓,单独锚定 semantic-conventions-genai 的 commit - 版本锚定 v1.44.0,并列出该版本下的废弃项(deployment.environment、 code.filepath/lineno、event.name) Co-Authored-By: Claude Code <noreply@anthropic.com>
Welcome To opensourceways CommunityHey @TangJia025 , thanks for your contribution to the community. Bot Usage ManualI'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 GuideIf you have any questions, please contact the SIG: infratructure , |
CLA Signature PassTangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍 |
新增两份调研文档: - docs/可观测洞察.md:完整版。技术趋势 6 条、国际与国内厂商格局、 与 obs-sdk / 社区可观测 / CI 可观测的关联,以及 P0-P2 行动建议 - docs/可观测洞察-概要版.md:概要版。第一章一张技术趋势表, 第二章国内外各一张厂商路线与前沿实践表 调研时间 2026-10-26;Gartner MQ 事实按 2025/2026 两版核对(Chronosphere 为连续第三年 Leader,Coralogix 由 Visionary 升入 Leader,Splunk 降至 Challenger)。 其中引用的 spec/otlp-mapping.md 由 PR #40 提供,故本分支基于 docs/2061-otlp-mapping。 Co-Authored-By: Claude Code <noreply@anthropic.com>
1 of 2 tasks
…sights docs: 新增可观测洞察(技术趋势 + 厂商路线)
CLA Signature PassTangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增
spec/otlp-mapping.md,作为 spec 契约的映射附录(非契约本体):主契约log-format/metrics-format/common-fields不动,只登记落盘字段将来接 OTLP 时对应的 OTel 语义键,避免届时返工。同时在spec/README.md目录表加一行索引。Resolves https://github.com/opensourceways/backlog/issues/2061
内容
semantic-conventionsv1.44.0(2026-08-04)+semantic-conventions-genai@9ffc7e0;列出该版本下的废弃项:deployment.environment、code.filepath/code.lineno、event.name。service→service.name、env→deployment.environment.name、instance→service.instance.id。community因请求级可变,只能作属性osw.community,不能进 Resource(否则中心化多社区服务的整进程数据都会被写死成一个社区)。trace_id/span_id必须落 LogRecord 原生字段;若当普通 attribute 写进attributes,日志将永久关联不上 trace。logger按最后一个:拆成code.file.path+code.line.number;event落eventName(event.name属性在 v1.44.0 已废弃)。http_server_request_duration_seconds恰好等于 semconvhttp.server.request.duration的翻译结果,无需改名;登记 label 改名(method→http.request.method等)与status_code的 string → int 转换;说明http_server_requests_total在 semconv 中无对应指标,不要自造http.server.request.count。gen_ai.*:已整体迁出主仓、独立出版节奏且无 tag,按 commit 锚定;本期只登记不实现,并标注会话 ID / 工具调用 ID 等高基数值禁止进 metric label。community不进 Resource、高基数不进 label、不硬造 semconv 指标名。边界
filelog/prometheusreceiver 配置)仅在 §6 示意,不在本期实现。🤖 Generated with Claude Code
AI 使用声明
当前 PR 是否有 AI 参与:
gh api核对 semconv v1.44.0 的注册表与 genai 仓当前 commit