ecs-logging-java icon indicating copy to clipboard operation
ecs-logging-java copied to clipboard

Skip error.stack_trace if empty

Open mosche opened this issue 1 year ago • 0 comments
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?

mosche avatar Jul 11 '24 14:07 mosche