fix(PHP): sanitize and produce metrics at shutdown

This change now requires that PHP routes do not return HTTP 404
to be considered for the /metrics population. Additionally,
we make a small sanitization here to avoid trailing '/'
characters, unless we're on the homepage route.

Signed-off-by: Kevin Morris <>
1 job for master in 31 seconds (queued for 7 seconds)
Status Name Job ID Coverage
passed test #36519