Alanxtl opened a new issue, #3356:
URL: https://github.com/apache/dubbo-go/issues/3356

   ### 背景
   
   当前 metadata 路线聚焦应用级 metadata:注册时发布 `MetadataInfo` 和 mapping,订阅时根据 mapping 与 
revision 获取远端 metadata。这个 issue 只讨论这条应用级链路的可观测性和错误语义。
   
   相关代码:
   - `metadata/report_instance.go`
   - `metadata/mapping/metadata/service_name_mapping.go`
   - `metadata/client.go`
   - `registry/servicediscovery/service_instances_changed_listener_impl.go`
   
   ### 当前问题
   
   目前 metadata push/sub 有一些 metrics,但应用级 metadata 主链路仍缺少足够观测:
   - mapping 写入、读取、监听、移除缺少统一 metrics
   - revision 计算结果、metadata cache 命中/失效缺少观测
   - metadata report 获取失败、RPC MetadataService 获取失败、URL 构造失败的错误语义不够清晰
   - consumer 订阅不到服务时,难以判断是 mapping、metadata report、RPC metadata service 还是 
revision/cache 问题
   
   ### 建议
   
   - 为 mapping register/get/listen/remove 增加 metrics 和结构化日志
   - 为 metadata report 与 RPC MetadataService 获取增加区分明确的错误类型或日志字段
   - 暴露 revision、storage type、metadata source、cache hit/miss 等关键调试信息
   - 增加失败路径测试,验证错误信息可定位到具体阶段
   - 保持日志简洁,避免在高频路径输出过多噪音
   


-- 
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