// Function used to add a specific dynamic metric namespace element
// into the dimensions field of final Heka message structure
func addToDimensions(f *message.Field, fName string) (*message.Field, error) {
	// If the dimension field does not exists yet, create ti
	if f == nil {
		field, err := message.NewField("dimensions", fName, "")
		if err != nil {
			logger.WithField("_block", "addToDimensions").Error(err)
			return nil, err
		}
		return field, nil
	}
	// Add field name to dimension field
	f.AddValue(fName)
	return f, nil
}