elastic / elastic/ecs-logging-java
Configuration for formatting Throwable stack traces
- Langage dominant
- Java
- Étoiles
- 148
- Forks
- 82
- Merge moyen
- 2 j 17 h
- PR mergées (30 j)
- 3
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:
1. Maximum depth
2. Include/exclude stack frames based on a pattern
3. Shorten class names by abbreviating package names to fit within a specified length
4. 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` 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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par localiser le ECS Throwable stack-trace formatter existant et son chemin de configuration. Comparez la profondeur demandée, le filtrage des frames, l'abrègement des noms de classes, l'ordre de la cause racine et l'interface de formatter fournie par l'application avec le comportement actuel. Pour considérer le travail comme terminé, il faut disposer d'un périmètre convenu et de tests pour les options de formatage et les formes de sortie sélectionnées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- observability-sre
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100