feat(observability): 客户端提醒送达与权限走 Sentry - #382
Open
gac0812 wants to merge 6 commits into
Open
Conversation
gac0812
force-pushed
the
feat/client-sentry-reminder-telemetry
branch
from
August 26, 2026 01:20
90c74ee to
e6a4e88
Compare
提醒响铃通道、厂商权限缺口只有手机知道;DSN 未配置时 SDK 保持关闭,标签只用封闭枚举,不上报 session 或日程原文。
送达补上触发源、延迟分桶和 deferred_until_foreground;原生 FGS 失败先落盘,下次打开 App 再报,便于在 Sentry Issues 里看到这类故障。
gac0812
force-pushed
the
feat/client-sentry-reminder-telemetry
branch
from
August 27, 2026 05:58
5ac4a77 to
885049e
Compare
gac0812
marked this pull request as ready for review
August 27, 2026 09:30
README 写明 EXPO_PUBLIC_SENTRY_DSN 从何处取、未配置则 SDK 关闭,并区分 source map 与 Grafana token,避免把真实 DSN 写进仓库。
ReminderLifecyclePort 少了一层相对路径会导致 typecheck 失败;CI 的 prettier --check 也卡在四个新增 observability 文件上。
main 补充了云上观测环境变量与部署段落;冲突只在 README,两边内容都保留。
codecov/patch 要求 94%,当前 diff 只有 87.5%。补上生命周期、异常送达、headless 通道和 Sentry 适配器的未覆盖分支。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EXPO_PUBLIC_SENTRY_DSN时 SDK 保持关闭。Related to #358
Test plan
native_ok,不重复记js_channeljs_channel,事件里没有日程标题Verification
cd frontend npx jest tests/unit/infrastructure/observability tests/unit/shared/observability tests/architecture/sentryImportBoundary.test.ts tests/unit/features/reminder/application/LocalReminderApplication.test.ts --no-coverage