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

Abierto
#842 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Refactorización
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
go

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
41
Forks
20
Merge medio
1 d 21 h
PR fusionados (30 d)
26

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de transparency-dev/tesseract

Todos los issues de transparency-dev/tesseract

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.