Revisit internal/ct/requestlog.go: keep, refactor, or drop

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
静か
技術スタック
go
領域
observability

調査の方向性

Start with internal/ct/requestlog.go and review the requestLog interface, DefaultRequestLog implementation, and its RL: prefix. Compare the logged events with the existing tracing spans, and read the per-request-debug logging sibling issue and #841 for context. Done means choosing and implementing one direction: remove the layer, restructure it around slog attributes, or document why it stays.

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

説明

Spun out of review feedback on #841 (klog → slog migration).

internal/ct/requestlog.go carries its own ad-hoc structured-logging convention (the RL: … prefix on each line) that predates the move to slog. The slog migration preserved the existing prefix but didn't take a position on whether this layer is still needed:

  • The interface logs request-scoped events (origin, addDERToChain, addCertToChain, issueSCT, status) via the DefaultRequestLog impl, all at slog.LevelDebug.
  • Most of what it captures arguably belongs in OpenTelemetry spans/events on the request, not in a separate per-request log channel.

Action: decide whether to

  1. Drop requestLog entirely and move the per-request data onto the existing tracing spans, or
  2. Keep it but rename/restructure away from the RL: prefix into proper slog attributes, or
  3. Leave as-is (current state after #841).

Probably worth doing alongside, or after, the per-request-debug logging review in the sibling issue.

主要言語
Go
スター
41
フォーク
20
平均マージ
1日 21時間
マージ済み PR(30日)
26

環境構築

はじめの一歩

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

transparency-dev/tesseract のほかの issue

transparency-dev/tesseract の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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