Improve the listener example on the metrics documentation.