Make label length max configurable. This can be useful for long labels such as sql statements to prevent them from consuming too much memory.