Class: Gitlab::Tracking::Destinations::SnowplowMicro

Inherits:
Snowplow
  • Object
show all
Extended by:
Utils::Override
Includes:
Utils::StrongMemoize
Defined in:
lib/gitlab/tracking/destinations/snowplow_micro.rb

Constant Summary collapse

'.gitlab.com'
DEFAULT_URI =
'http://localhost:9090'

Constants inherited from Snowplow

Gitlab::Tracking::Destinations::Snowplow::DEDICATED_APP_ID, Gitlab::Tracking::Destinations::Snowplow::SELF_MANAGED_APP_ID, Gitlab::Tracking::Destinations::Snowplow::SNOWPLOW_NAMESPACE

Instance Attribute Summary

Attributes inherited from Snowplow

#destination_configuration

Instance Method Summary collapse

Methods included from Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from Snowplow

#app_id, #emit_event_payload, #event, #frontend_client_options

Constructor Details

#initializeSnowplowMicro

Returns a new instance of SnowplowMicro.



15
16
17
# File 'lib/gitlab/tracking/destinations/snowplow_micro.rb', line 15

def initialize
  super(DestinationConfiguration.snowplow_micro_configuration)
end

Instance Method Details

#snowplow_options(group) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/gitlab/tracking/destinations/snowplow_micro.rb', line 20

def snowplow_options(group)
  # Using camel case as these keys will be used only in JavaScript
  super.merge(
    protocol: protocol,
    port: uri.port,
    forceSecureTracker: false,
    cookieDomain: COOKIE_DOMAIN
  )
end