Skip to content

Commit 6500df6

Browse files
committed
perf(metrics): 更新 matcher 事件指标名称
- 将 "matcher_duration_seconds" 重命名为 "nonebot_matcher_duration_seconds" - 此更改提高了指标名称的可读性和一致性,便于更好地识别和使用相关数据
1 parent c07ff41 commit 6500df6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nonebot_plugin_prometheus/metrics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def handle_bot_disconnect(bot: Bot):
6161
from prometheus_client import Histogram
6262

6363
matcher_duration_histogram = Histogram(
64-
"matcher_duration_seconds",
64+
"nonebot_matcher_duration_seconds",
6565
"Histogram of matcher duration in seconds",
6666
["plugin_id", "matcher_name", "exception"],
6767
buckets=(

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "nonebot-plugin-prometheus"
3-
version = "0.3.11"
3+
version = "0.3.12"
44
description = "为 NoneBot 和其他插件提供 Prometheus 监控支持"
55
readme = "README.md"
66
requires-python = ">=3.9, <4.0"

0 commit comments

Comments
 (0)