How Application Performance Monitoring Works