request id for request metrics
extract Rails AS::Notify stuff into a module for both middlewares