Closed
[Bug]: MetricsCollector(enable_prometheus=True, prometheus_prefix="")接口测试时,prometheus_prefix为空字符串时,rometheus_client.Counter名以""开头合法但不符合命名规范,应该创建失败 #48
baitao_9527Add on  Jul 3Closed at  Sep 8
baitao_9527
Jul 3 Create

Checklist

🐞 问题详细描述

1-1、开发代码:
4.png
1-2、增加一个prometheus_prefix的字符串长度也做个限制,给用户提示,一般长度超过256就算是问题,报error
2、预期结果:应该创建失败,实际是成功
3、运行结果截图:

5.png

详细的环境信息描述

linux 环境
运行用例前启动8个服务

其他辅助信息

版本信息

感谢您的贡献 🎉!

likedislike
OopenJiuwen-botCollaborators
Jul 3 Added label: sig/sig-agent-protocol
openJiuwen-botCollaborators
Jul 3 Comments:

欢迎来到 openJiuwen 社区

Hey @baitao_9527 , 感谢你对社区的贡献.

机器人使用手册

有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。

联系指引

有疑问可以联系 SIG: sig-agent-protocol ,
维护者是: @YiyangShao, @xinyu-jiuwen ,
审核者是: @gcw_hx9prznZ, @mingo007 .

likedislike
Bbaitao_9527
Jul 3 Modify description of issue
Bbaitao_9527
Jul 3 Modify description of issue
chengbingchengbingCollaborators
Aug 20 Assign JustinBieber1223 as responsible person
yutaoJustinBieber1223yutaoJustinBieber1223Collaborators
Sep 4 Associated pull request
OopenJiuwen-botCollaborators
Sep 8 Close issue
OopenJiuwen-botCollaborators
Sep 8 changed custom state from TODO to DONE
baitao_9527
Sep 14 Comments:

回归通过,关闭问题单
1、为空时报错--验证通过:
image.png
image.png
2、超过256长度--验证通过:
image.png
image.png

likedislike
yutaoJustinBieber1223yutaoJustinBieber1223Collaborators
Sep 17 Associated pull request
yutaoJustinBieber1223yutaoJustinBieber1223Collaborators
Sep 17 Associated pull request