Support structured logback messages via logstash encoder #5969
Labels
contribution welcome
Request makes sense, maintainers probably won't have time, contribution would be welcome
enhancement
New feature or request
This has come up a few times:
Unfortunately, logback has no native structured log message support (other than MDC, which is not ideal, see discussion in first link above).
Logstash Json Encoder seems to be reasonably popular and fills this gap. Unfortunately, the logstash StructuredArgument API is defined around arbitrary Json data, and so maybe(?) the best we can do from translating it to OTel attributes is to take the top-level key/values, where the values may be arbitrarily nested json strings themselves.
The text was updated successfully, but these errors were encountered: