Add configurable stack trace limit