added metrics to spring