elastic / elastic/ecs-logging-java
Configuration for formatting Throwable stack traces
- 主要言語
- Java
- スター
- 148
- フォーク
- 82
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 3
説明
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.
コントリビューションガイド
調査の方向性
まず、既存の ECS Throwable stack-trace formatter とその設定パスを特定します。要求された深さ、フレームのフィルタリング、クラス名の短縮、root cause の順序、およびアプリケーションが提供する formatter インターフェースを、現在の動作と比較します。完了には、合意されたスコープと、選択したフォーマットオプションおよび出力形式に対するテストが必要です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- observability-sre
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100