// AddMetrics register metrics keys when exist collector
AddMetrics register metrics keys when exist collector
// AddMetrics register metrics keys when exist collector
func (cw *SimpleWriter) AddMetrics(metrics ...string) error {
	s, err := addMetrics(cw.Source.GetMetricsKeys(), cw.MetricsKeys, metrics)
	if err != nil {
		return err
	}
	cw.MetricsKeys = s
	return nil
}
func ( cw * SimpleWriter ) AddMetrics ( metrics ... string ) error { s , err := addMetrics ( cw . Source . GetMetricsKeys ( ) , cw . MetricsKeys , metrics ) if err != nil { return err } cw . MetricsKeys = s return nil }
AddMetrics register metrics keys when exist collector
AddMetrics register metrics keys when exist collector