Metrics Collection and Logging