Truncates a string to a given max length.
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 length to truncate to.
A string with at most length bytes.
length
In case value is not a string.
value
Generated using TypeDoc
Truncates a string to a given max length.
If the string required truncation, records an error through the error reporting mechanism.