-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
146 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Event tracker backend that emits events to the event-bus.""" | ||
from openedx_events.analytics.signals import TRACKING_EVENT_EMITTED | ||
from openedx_events.analytics.data import TrackingLogData | ||
|
||
class EventBusRoutingBackend: | ||
""" | ||
Event tracker backend that emits an Open edX public signal. | ||
""" | ||
|
||
def __init__(self, **kwargs): | ||
""" | ||
Event tracker backend that emits an Open edX public signal. | ||
""" | ||
|
||
def send(self, event): | ||
""" | ||
Emit the TRACKING_EVENT_EMITTED Open edX public signal to allow | ||
other apps to listen for tracking events. | ||
""" | ||
# .. event_implemented_name: TRACKING_EVENT_EMITTED | ||
TRACKING_EVENT_EMITTED.send_event( | ||
tracking_log=TrackingLogData( | ||
name=event.get('name'), | ||
timestamp=event.get('timestamp'), | ||
data=event.get('data'), | ||
context=event.get('context') | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ pytz | |
six | ||
celery | ||
edx-django-utils | ||
openedx_events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
amqp==5.1.1 | ||
billiard==3.6.4.0 | ||
celery==5.2.7 | ||
billiard==4.1.0 | ||
celery==5.3.0 | ||
click==8.1.3 | ||
click-didyoumean==0.3.0 | ||
click-repl==0.2.0 | ||
kombu==5.2.4 | ||
kombu==5.3.0 | ||
prompt-toolkit==3.0.38 | ||
vine==5.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.