Structured logging significantly simplifies production setup. Unfortunately, missing equivalent of ShortenedThrowableConverter is disqualifying.

It is not just readability issue. Uncontrolled stacktraces can exceed log buffer, break parsing JSON and finally "hide" from search engine Ref: https://stackoverflow.com/questions/79294615/shortenedthrowableconverter-in-spring-boot-3-4-structured-logging

Comment From: mhalbritter

For reference, ShortenedThrowableConverter is from logstash-logback-encoder and can be found here.

Comment From: philwebb

Stacktrace processing was also discussed in #42486

Comment From: philwebb

Collating references for ideas:

  • https://github.com/mp911de/logstash-gelf/blob/main/src/main/java/biz/paluch/logging/StackTraceFilter.java
  • https://github.com/logfellow/logstash-logback-encoder/blob/main/src/main/java/net/logstash/logback/stacktrace/ShortenedThrowableConverter.java