|
if !model.LabelValue(l.GetValue()).IsValid() { |
|
return fmt.Errorf("invalid label value %q", l.GetValue()) |
|
} |
|
if !model.LabelName(l.GetName()).IsValid() { |
|
return fmt.Errorf("invalid label name %q", l.GetName()) |
Rather than return error cause losing the whole metrics, it would be reasonable to just filter them and log it.