Skip to content

Add a CI check for attribute keys not in Sentry Conventions #7056

Open

Description

@antonis

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).

Activity

  1. linear-code commented on Nov 17, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions