Skip to content

Commit

Permalink
feat: added channel field in ace sentl event (#35423)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadadeeltajamul authored Sep 6, 2024
1 parent ec76baf commit 0d69c01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lms/djangoapps/bulk_email/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ def ace_email_sent_handler(sender, **kwargs):
course_id = message.context.get('course_id')
if not course_id:
course_id = course_email.course_id if course_email else None
try:
channel = sender.__class__.__name__
except AttributeError:
channel = 'Other'
tracker.emit(
'edx.bulk_email.sent',
'edx.ace.message_sent',
{
'message_type': message.name,
'channel': channel,
'course_id': course_id,
'user_id': user_id,
}
Expand Down

0 comments on commit 0d69c01

Please sign in to comment.