This PR adds the optional `report_stats_endpoint` to configure where stats are reported to, if enabled.