Truncates a string to a given max number of bytes.
If the string required truncation, records an error through the error reporting mechanism.
The metric to record an error to, if necessary,
The string to truncate.
The max number of bytes to truncate to.
A string with at most maxLength bytes.
maxLength
In case value is not a string.
value
Generated using TypeDoc
Truncates a string to a given max number of bytes.
If the string required truncation, records an error through the error reporting mechanism.