Make Gitlab::Tracking.enabled? the SSoT for the snowplow_enabled setting
Gitlab::Tracking.enabled?
already checks if Gitlab::CurrentSettings.snowplow_enabled?
, but then so do a number of other places.
It makes sense to make Gitlab::Tracking.enabled?
the single-source-of-truth for that information.
This also makes it simpler to extend GitLab’s tracking capabilities in the future by making it more flexible in regards to what collector is being used/enabled.
Edited by Dallas Reedy