def METHOD_NAME(self, event, payload, **kwargs):
    # TODO(dcramer): we currently only support authenticated events, as the
    # value of anonymous errors/crashes/etc is much less meaningful in the
    # context of Segment
    # we currently only support errors
    if event.get_event_type() != "error":
        return
    # we avoid instantiating interfaces here as they're only going to be
    # used if there's a User present
    user_interface = event.data.get("sentry.interfaces.User")
    if not user_interface:
        return
    user_id = user_interface.get("id")
    if not user_id:
        return
    write_key = self.get_option("write_key", event.project)
    if not write_key:
        return
    with http.build_session() as session:
        session.post(self.endpoint, json=payload, auth=(write_key, ""))