Rewrite Metrics.java, just need to check response codes and potentially change User-Agent.