chore: 清理多余的BOM头并整理依赖与telemetry代码

- 移除所有文件开头的多余UTF-8 BOM头
- 简化go.mod依赖,移除未使用的uuid包
- 重构telemetry包:将Meter改为接口并拆分默认实现
This commit is contained in:
sun
2026-08-15 14:38:14 +08:00
parent 5b970f49e1
commit 81fcc9fff4
14 changed files with 38 additions and 32 deletions
+2
View File
@@ -5,6 +5,8 @@ import "net/http"
// NoopMeter 是一个不采集、不输出的 Meter,用于单元测试或禁用观测的场景。
// 返回的 Counter / Gauge / Histogram 实例不会被注册到任何 Registry,
// 它们的 Inc/Add/Observe 调用在本进程内没有可见效果(每次返回新的空实例)。
//
// 实现 Meter 接口。
type NoopMeter struct{}
func (NoopMeter) NewCounter(string, string, ...string) *Counter {