Remove obsolete max_lifetime param.
Helper method for getting metrics middleware message metadata.
Use shorter key in metrics middleware message metadata.