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

Aperta
#842 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
observability

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
41
Fork
20
Merge medio
1g 21h
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di transparency-dev/tesseract

Tutte le issue di transparency-dev/tesseract

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.