Record error details when a wizard crashes

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

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

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

評価

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

調査の方向性

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.

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

説明

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.

主要言語
TypeScript
スター
297
フォーク
88
平均マージ
5時間 29分
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

getsentry/sentry-wizard のほかの issue

getsentry/sentry-wizard の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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