mendhak / mendhak/docker-http-https-echo

Option to change log format to JSON

オープン
#59 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Shell
スター
792
フォーク
152
平均マージ
3日 18時間
マージ済み PR(30日)
3

説明

First off, thank you for putting in the work. This is a super helpful project.


I would appreciate it if it was possible to enable an option besides LOG_WITHOUT_NEWLINE and DISABLE_REQUEST_LOGS to have one line per request in the log output formatted as JSON.

One of the reasons is that I don't use the logs on the host machine directly. They might get scraped and processed out of order by Loki, so they might not end up next to each other. The second reason is that it would be simpler to parse them when they had the same format.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、既存の LOG_WITHOUT_NEWLINE と DISABLE_REQUEST_LOGS オプションを見つけ、request のログ記録経路を追跡します。request ごとに 1 行を出力する選択可能な JSON 形式を追加し、その後、出力を一貫してパースでき、要求されたログ情報が保持されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, shell
領域
observability
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。