Add in a comment describing the reasoning for the names

This commit is contained in:
Gabe Mulley
2015-09-08 09:45:43 -04:00
parent c652cb2d1d
commit ab6e76c19b
2 changed files with 8 additions and 0 deletions

View File

@@ -815,6 +815,10 @@ TRACKING_BACKENDS = {
TRACKING_IGNORE_URL_PATTERNS = [r'^/event', r'^/login', r'^/heartbeat']
EVENT_TRACKING_ENABLED = True
# NOTE: the sort order of the backend names is important here, the events will be sent to the backends in sorted
# order. In this case a processor modifies the event in a way that is only intended to be seen by segment.io, so
# we want to make sure that backend and processor is run *after* the event has been sent to the tracking logs.
EVENT_TRACKING_BACKENDS = {
'0_tracking_logs': {
'ENGINE': 'eventtracking.backends.routing.RoutingBackend',

View File

@@ -629,6 +629,10 @@ TRACKING_BACKENDS = {
TRACKING_IGNORE_URL_PATTERNS = [r'^/event', r'^/login', r'^/heartbeat', r'^/segmentio/event', r'^/performance']
EVENT_TRACKING_ENABLED = True
# NOTE: the sort order of the backend names is important here, the events will be sent to the backends in sorted
# order. In this case a processor modifies the event in a way that is only intended to be seen by segment.io, so
# we want to make sure that backend and processor is run *after* the event has been sent to the tracking logs.
EVENT_TRACKING_BACKENDS = {
'0_tracking_logs': {
'ENGINE': 'eventtracking.backends.routing.RoutingBackend',