• I'm not sure I understand. This approach seems complicated and prone to issues as the author mentioned. Why not implement this as a middleware and simply emit those metrics from there, to stdout, your monitoring system or add them to a context?