It seems reasonable to want some analytics and it looks like they did a good job from a privacy standpoint (random IDs that you can even change if you wish). They even allow you to opt-out. There is simply no betrayal here.
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics
The vast majority of users want Homebrew to work better and are fine with the developers knowing which packages are the most popular. This is not "betrayal".