[Blocker] Add health checks, telemetry and structured logging
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- azure, csharp
- 领域
- backend, cloud, observability
调研方向
首先阅读 LearnStack/Program.cs 以了解当前的托管和日志记录设置,然后定位数据库上下文和 App Service 配置。当 /healthz 报告数据库可用性、Blazor circuit 故障和指定的应用程序故障在遥测中实现关联,并且所请求的错误率告警和仪表板已完成配置时,工作就完成了。
由索引模型根据 Issue 内容生成。
描述
Tier 1 — release blocker
Problem
There is no /healthz endpoint, no Application Insights, no OpenTelemetry and no structured logging. When production misbehaves the only signal is console output. Blazor Server in particular needs circuit-level visibility — dropped circuits, unhandled component exceptions and SignalR reconnects are invisible today.
Evidence
- No
AddHealthChecks,ApplicationInsights,OpenTelemetryorSerilogreference anywhere LearnStack/Program.cs— default console logging only
Proposed fix
AddHealthChecks().AddDbContextCheck<ApplicationDbContext>()mapped at/healthz, wired to the App Service health probe.- Add Application Insights (or OpenTelemetry exporting to Azure Monitor).
- Track: circuit open/close, unhandled component exceptions, OpenGraph fetch failures, login failures, slow queries.
- Add a dashboard and an alert on the error rate.
Acceptance criteria
-
/healthzreturns degraded when the database is unreachable - Unhandled exceptions in a Blazor circuit appear in telemetry with user/session correlation
- An alert fires on sustained 5xx or circuit-failure rate
- 主要语言
- HTML
- 星标
- 10
- 派生
- 0
- 平均合并
- 2 小时 35 分钟
- 30 天内合并 PR
- 21
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kasuken/LearnStack 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 91/100
kasuken/LearnStack#59 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
kasuken/LearnStack#72 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 30/100
kasuken/LearnStack#71 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
kasuken/LearnStack#70 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 45/100
kasuken/LearnStack#69 ·
维护者通常 1 天内回复
查看 kasuken/LearnStack 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
Marker-Inc-Korea/AutoRAG#1801 ·
维护者通常 1 天内回复
-
reef remote discovery needs a GitHub token for public releases, and its error names `<provider>`未关闭area:ecosystem bug cli
难度 2/5 1-3 小时 新手友好度 88/100
Chelis-Lang/chelis#3313 ·
维护者通常 1 天内回复
-
Clock.MakeTime fails to validate hour, minute, and second ranges due to inert Calendar.set try-catch未关闭
难度 2/5 1-3 小时 新手友好度 84/100
mit-cml/appinventor-sources#4139 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复