Commit 76c68be9 authored by Piotr Skorupa's avatar Piotr Skorupa

Move .enabled? from Gitlab::Tracking to destination class

parent 666fa798
......@@ -4,7 +4,7 @@ module Gitlab
module Tracking
class << self
def enabled?
snowplow_micro_enabled? || Gitlab::CurrentSettings.snowplow_enabled?
snowplow.enabled?
end
def event(category, action, label: nil, property: nil, value: nil, context: [], project: nil, user: nil, namespace: nil, **extra) # rubocop:disable Metrics/ParameterLists
......
......@@ -37,7 +37,7 @@ module Gitlab
private
def enabled?
Gitlab::Tracking.enabled?
Gitlab::CurrentSettings.snowplow_enabled?
end
def app_id
......
......@@ -33,6 +33,11 @@ module Gitlab
private
override :enabled?
def enabled?
true
end
override :cookie_domain
def cookie_domain
'.gitlab.com'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment