how to prefix structlog log value with "custom." or route them to a certain ecs field
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
レポートでは structlog と ecs-logging が挙げられていますが、リポジトリのファイル、テスト、エントリーポイントは特定されていません。まず ECS フィールドのレンダリングとマッピングの設定箇所を探し、次にカスタムフィールドに関する既存の例やテストを確認してください。request_id をルーティングし、要求どおり foo に prefix を付ける、文書化された、またはサポートされた方法があれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
according to the ecs documentation non ecs standard fields should go under "custom."
Also I might log data that should go to a certain ecs field
but i'm not sure how to configure something like this in structlog/ecs-logging.
for example this:
req_id = uuid()
...
logger.info("something happend", foo="123", request_id=req_id)
should end up being something like this:
{
"http.request.id" : "<generated_req_uuid>",
"message": "something happend",
"custom.foo" : 123
...
}
- 主要言語
- Python
- スター
- 74
- フォーク
- 33
- 平均マージ
- 9時間 3分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
elastic/ecs-logging-python のほかの issue
-
agent-python community triage
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
elastic/ecs-logging-python#170 ·
-
agent-python community triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
elastic/ecs-logging-python#185 · コメント 6 件 ·
-
agent-python community triage
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
elastic/ecs-logging-python#146 · コメント 2 件 ·
-
agent-python community enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
elastic/ecs-logging-python#73 · コメント 5 件 ·
-
agent-python community triage
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
elastic/ecs-logging-python#72 · リアクション 1 件 ·
elastic/ecs-logging-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·