diff --git a/event_routing_backends/settings/common.py b/event_routing_backends/settings/common.py index 9dbdf3c6..b51f5a63 100644 --- a/event_routing_backends/settings/common.py +++ b/event_routing_backends/settings/common.py @@ -173,18 +173,20 @@ def plugin_settings(settings): 'edx.course.grade.now_failed' ] - settings.EVENT_BUS_TRACKING_LOGS = set(allowed_xapi_events + allowed_caliper_events) + allowed_events = set(allowed_xapi_events + allowed_caliper_events) + + settings.EVENT_BUS_TRACKING_LOGS = allowed_events settings.EVENT_TRACKING_BACKENDS.update({ - 'xapi': { + 'event_transformer': { 'ENGINE': 'eventtracking.backends.async_routing.AsyncRoutingBackend', 'OPTIONS': { - 'backend_name': 'xapi', + 'backend_name': 'events', 'processors': [ { 'ENGINE': 'eventtracking.processors.whitelist.NameWhitelistProcessor', 'OPTIONS': { - 'whitelist': allowed_xapi_events + 'whitelist': allowed_events } }, ], @@ -193,6 +195,12 @@ def plugin_settings(settings): 'ENGINE': 'event_routing_backends.backends.async_events_router.AsyncEventsRouter', 'OPTIONS': { 'processors': [ + { + 'ENGINE': 'eventtracking.processors.whitelist.NameWhitelistProcessor', + 'OPTIONS': { + 'whitelist': allowed_xapi_events + } + }, { 'ENGINE': 'event_routing_backends.processors.xapi.transformer_processor.XApiProcessor', @@ -201,27 +209,17 @@ def plugin_settings(settings): ], 'backend_name': 'xapi', } - } - }, - }, - }, - "caliper": { - "ENGINE": "eventtracking.backends.async_routing.AsyncRoutingBackend", - "OPTIONS": { - "backend_name": "caliper", - "processors": [ - { - "ENGINE": "eventtracking.processors.whitelist.NameWhitelistProcessor", - "OPTIONS": { - "whitelist": allowed_caliper_events - } - } - ], - "backends": { + }, "caliper": { 'ENGINE': 'event_routing_backends.backends.async_events_router.AsyncEventsRouter', "OPTIONS": { "processors": [ + { + "ENGINE": "eventtracking.processors.whitelist.NameWhitelistProcessor", + "OPTIONS": { + "whitelist": allowed_caliper_events + } + }, { "ENGINE": "event_routing_backends.processors." @@ -240,7 +238,7 @@ def plugin_settings(settings): "backend_name": "caliper" } } - } - } - } + }, + }, + }, })