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 ...@@ -4,7 +4,7 @@ module Gitlab
module Tracking module Tracking
class << self class << self
def enabled? def enabled?
snowplow_micro_enabled? || Gitlab::CurrentSettings.snowplow_enabled? snowplow.enabled?
end end
def event(category, action, label: nil, property: nil, value: nil, context: [], project: nil, user: nil, namespace: nil, **extra) # rubocop:disable Metrics/ParameterLists 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 ...@@ -37,7 +37,7 @@ module Gitlab
private private
def enabled? def enabled?
Gitlab::Tracking.enabled? Gitlab::CurrentSettings.snowplow_enabled?
end end
def app_id def app_id
......
...@@ -33,6 +33,11 @@ module Gitlab ...@@ -33,6 +33,11 @@ module Gitlab
private private
override :enabled?
def enabled?
true
end
override :cookie_domain override :cookie_domain
def cookie_domain def cookie_domain
'.gitlab.com' '.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