Add a CI check for attribute keys not in Sentry Conventions

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, typescript
領域
ci-cd, tooling

調査の方向性

Start by checking whether the shared cross-SDK conventions check is available; otherwise follow the issue’s suggested extraction from packages/core/src/js and compare keys with the installed @sentry/conventions types. Read buildandtest.yml to find where the check belongs and add an allowlist for warn-only mode. Done means the check runs on every PR in warn-only mode and has a documented path to strict mode after registration issues land.

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

説明

React-Native Task

Add a CI check that flags attribute keys and span ops the SDK sends that aren't in Sentry Conventions, or are deprecated there.

Rollout

  1. Warn-only: run the check on every PR. Existing keys go on an allowlist.
  2. Shrink the allowlist as the registration issues in this project land.
  3. Strict: fail the build on new keys that aren't registered. The allowlist ends up empty, or holds only breaking renames scheduled for the next major.

Approach

  • Prefer the shared cross-SDK check once it exists, with a small RN config.
  • If it isn't available yet, add an interim script that extracts the keys from packages/core/src/js and compares them with the installed @sentry/conventions.

Acceptance criteria

  • The check runs in buildandtest.yml in warn-only mode, with an allowlist file.
  • It's switched to strict mode once the registration issues are done.
Agent notes
  • The sweep that produced this project extracted every dotted string literal from src/js (tests excluded), compared them with dist/attributes.d.ts and dist/op.d.ts from @sentry/conventions, and filtered out paths, modules and file names. The same approach works as an interim script.
  • It doesn't catch dynamically built keys (template strings). The TurboModule per-method keys were the only ones, and they're removed by the TurboModule rename issue.
  • CI workflow changes need maintainer approval (AGENTS.md: Ask first).
主要言語
TypeScript
スター
1.8k
フォーク
371
平均マージ
22時間 3分
マージ済み PR(30日)
106

環境構築

はじめの一歩

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

getsentry/sentry-react-native のほかの issue

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

似ている issue

TypeScript の issue をもっと見る

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

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