This tweaks the logic behind the /metrics endpoint in order to properly log encoding errors. It also switches the existing code to use a pre-allocated String buffer, skipping some small reallocations while encoding and avoiding parsing already valid UTF-8 content.
This tweaks the logic behind the
/metrics
endpoint in order to properly log encoding errors. It also switches the existing code to use a pre-allocated String buffer, skipping some small reallocations while encoding and avoiding parsing already valid UTF-8 content.