dodjdnh commented on PR #1607:
URL: https://github.com/apache/dubbo-admin/pull/1607#issuecomment-6380429621

   > ## 结论:方向正确,可以合入
   > PR 只改 5 个文件(+419/-1),`changed_files=5` 与 Diff 一致,没有 Go 代码路径变化,风险集中在 
Collector 配置与文档的准确性上。
   > 
   > ### 已核对
   > `otelCollector-configuration.yaml` 的 `transform/dubbo_application` 
与文档描述一致,处理顺序正确:
   > 
   > 1. 从 `rpc.service` 复制出 `dubbo.metric.interface`;
   > 2. 移除 `[group/]` 前缀;
   > 3. 当 `dubbo.version` 缺失且 interface 以 `:version` 结尾时,先取出 
`dubbo.metric.version`,再从 interface 剥掉版本;
   > 4. `dubbo.metric.group` 先按 `^[^/]+/.+` 提取,再用显式的 `dubbo.group` / 
`dubbo.version` 覆盖。
   > 
   > 这与 `scripts/verify-trace-metric-collector.py` 里的 11 个 fixture(含 
`COLON_IN_GROUP`、`EXPLICIT_PRECEDENCE`、`NO_RESOURCE_NAME`)能一一对应;脚本还会断言 pipeline 
顺序必须是 `k8sattributes, transform/dubbo_application`,这个检查很有价值。
   > 
   > ### P3 · 验证脚本没有 CI 执行路径
   > `verify-trace-metric-collector.py` 需要本机存在 **otelcol-contrib 0.112.0** 
原生可执行文件,`.github/workflows` 里没有任何作业会运行它;Windows 脚本版本同理。也就是说,这份 419 
行的配置改动目前只有作者本地验证。
   > 
   > 建议后续加一个 job:用 `otel/opentelemetry-collector-contrib:0.112.0` 
容器跑该脚本(脚本本身已支持 `--collector` 指定二进制)。否则 Collector 升版时这里会在无人察觉的情况下失效。
   > 
   > ### P3 · 两套脚本重复维护
   > Python 版(178 行)与 Windows 版维护同一份 fixture 矩阵。当前两份内容一致,但后续任何规则调整都需要改两处,容易漂移。若 
Windows 版本只是为了本地验证,建议让它调用 Python 版本,或把 fixture 抽成一个 JSON 文件由两者共用。
   > 
   > ### P3 · `error_mode: ignore` 会掩盖配置错误
   > `transform/dubbo_application` 使用 `error_mode: ignore`。运行时这能避免一条坏 span 
影响整批,但也会让 OTTL 语句里的拼写错误静默通过。配合上面的 CI 检查会更稳妥。
   
   明白


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to