improve error handling for system info metrics

This commit is contained in:
yusing
2025-02-14 03:49:56 +08:00
parent 267fd403da
commit f0198616ad
3 changed files with 98 additions and 35 deletions

View File

@@ -122,3 +122,9 @@ func (b *Builder) AddRange(errs ...error) *Builder {
return b
}
func (b *Builder) ForEach(fn func(error)) {
for _, err := range b.errs {
fn(err)
}
}