-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
Description
I'd like to see more options for how stack traces are formatted in the ECS logs to help in reducing the size of logs.
Some examples:
- Maximum depth
- Include/exclude stack frames based on a pattern
- Shorten class names by abbreviating package names to fit within a specified length
- Root cause first or last
Ideally a configuration option could override the formatting of the stack trace through an interface implementation provided by the application. That implementation could return a String[]
or Stream<String>
of the formatted stack frames which are then added to the ECS log either as a JSON string or an array of strings.
I'd be happy to work on a PR for this if there is interest in it being included.
michaelmcfadyensky, echatman and robsonhermes