implemented the sender worker for metrics