Basic metrics tracking for the Flask framework.