Crafting an appealing guitar solo for a song is always a creative challenge. There are many different approaches one can take: Do I follow the chord changes so that the notes line up perfectly with the progression? Or should I simply strive to “be melodic,” like a singer, even if the notes are a little less “anchored” to each chord?
For me, the best approach is usually to follow the “song within a song” compositional concept, while also being aware of what each chord in the progression affords me as a soloist.