Record error details when a wizard crashes

Abierto
#1,399 1 comentario 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
40/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start in src/telemetry.ts, especially withTelemetry and beforeSend, and read the existing telemetry tests to see how events are asserted. The proposal names the safe fields to consider, but the message-sanitization policy still needs a decision before implementation. Done means crash events can be grouped by step plus allowlisted error details, and tests confirm that paths and stack traces are not sent.

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

Descripción

bug Errors
Problem

When a wizard crashes, our telemetry does not tell us why. withTelemetry in src/telemetry.ts discards the caught error and captures a constant string:

} catch (e) {
  Sentry.captureException('Error during wizard execution.');

beforeSend also removes stack traces. The events still carry tags such as integration and progress (the last step started), but no error name, message or code. Different crashes end up with the same message, so we cannot tell which bugs users hit or whether a fix worked.

Proposal

Record enough about the original error to tell crashes apart, for example:

  • the error name
  • the error code, such as ENOENT, if there is one
  • a sanitized message, if we decide that is safe

Use these details, together with the step, for grouping.

Privacy constraints

Raw errors must not be sent as they are:

  • Stack traces may contain absolute paths, which is why they are stripped today.
  • Messages can contain absolute paths, user names, project code or command output.
  • cause and other error properties can contain the same.

An allowlist of safe fields is a good starting point. Whether messages can be included, and how to sanitize them, needs a decision. Tests should check that paths and stack traces are not sent.

Lenguaje dominante
TypeScript
Estrellas
297
Forks
88
Merge medio
5 h 29 min
PR fusionados (30 d)
5

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 getsentry/sentry-wizard

Todos los issues de getsentry/sentry-wizard

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.