ecs-logging-java
ecs-logging-java copied to clipboard
Skip error.stack_trace if empty
trafficstars
Opening this PR for discussion.
Some exceptions in Elasticsearch don't contain a stacktrace, e.g. NotMasterException.
For these error.stack_trace typically just repeats what's already present in error.type and error.message, having the field doesn't add any value.
Can we skip error.stack_trace in this case?