Create handler correctly in send_local_metrics

[Finishes #50766169]