Recording SendGrid events into mongo datastore