Speed limits are about public safety, too, but speed traps are usually about money. Ride-sharing regulations might be about safety, but Uber 'stings' seem to be about hurting drivers (not Uber) and preserving the value of taxi medallions.
If the police want information, subpoena Uber; don't play spy vs spy with folks trying to eke out a few bucks.