feat(expo): OTA-update Release Health

Đang mở
#6,816 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@antonis đang làm issue này rồi.

Từ ngày 1/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Blocked Feature React-Native
Problem Statement

EAS Update (and CodePush) shops ship JS over-the-air many times between native binary releases. Today the binary release (e.g. [email protected]+42) is the unit of Release Health, so every OTA update that runs on top of that binary rolls up into the same crash-free curve and the same adoption number. There's no way to see "update X is crashier than update X-1" or "update X has reached 60% adoption" — the questions an OTA-first team asks after every publish.

We already surface the running update as filterable metadata:

  • ota_updates event context (update_id, channel, runtime_version, launch flags…),
    synced to native so native crashes carry it — integrations/expocontext.ts
  • searchable tags expo.updates.update_id / channel / runtime_version
  • update-lifecycle breadcrumbs + spans (app.update.check / app.update.download) —
    integrations/expoupdateslistener.ts

All of it is a filter, not a Release Health unit: you can slice issues by update, but you cannot get a per-update adoption or crash-free-sessions curve.

Suggested Solution

Add an opt-in, default-off SDK option (working name: ~~expoUpdatesReleaseHealth~~, final name TBD) that, when an Expo update is running, makes each OTA update its own Sentry Release — unlocking per-update Release Health (crash-free rate + adoption) with no native rebuild and no manual ~~Sentry.init~~ config.

Behaviour:
  • When on and an update is running, derive ~~release = <id>@<version>+<updateId>~~,
    reading ~~updateId~~ synchronously from ~~RN_GLOBAL_OBJ.expo.modules.ExpoUpdates~~ (no new
    dependency, no async).
  • Default off — turning it on re-buckets Release Health, so it must be explicit.
  • Respects an explicit ~~release~~~~ (and ~~SENTRY_RELEASE~~ / build-time overrides) — never~~
    clobbers a user-set value.
  • Propagates to native at init so native crashes during that update land on the same
    release (~~release~~~~ is already forwarded via ~~wrapper.ts initNativeSdk~~).~~
  • Embedded / no-update launch falls back to the normal native-build release.
  • Ships with docs covering the source-map matching caveat (artifacts for the OTA bundle
    must be uploaded under the same per-update release) and expected Releases-list volume for
    high-frequency publishers.
Alternative considered
Add an OTA dimension to the session data model

Release Health is computed from session payloads, not error events. Per the session spec, a session's attrs is exactly four fields:

attr notes
release required — the grouping dimension for Release Health
environment
ip_address not persisted
user_agent not persisted
Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
371
Merge trung bình
22 giờ 3 phút
Pull request đã merge (30 ngày)
106

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-react-native

Tất cả issue của getsentry/sentry-react-native

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.