def before_send_to_sentry(event, hint):
    """Edit event properties before logging to Sentry

    Docs: https://docs.sentry.io/error-reporting/configuration/filtering/?platform=python#before-send
    """
    # Report a general logger name (`ingest_pipeline`) to Sentry,
    # rather than the function-specific logger name (e.g. `__main___errors`)
    # used internally within Ingest Pipeline.
    event["logger"] = "ingest_pipeline"
    return event