Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Blocker] Add health checks, telemetry and structured logging

未关闭
#44 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
azure, csharp

调研方向

首先阅读 LearnStack/Program.cs 以了解当前的托管和日志记录设置,然后定位数据库上下文和 App Service 配置。当 /healthz 报告数据库可用性、Blazor circuit 故障和指定的应用程序故障在遥测中实现关联,并且所请求的错误率告警和仪表板已完成配置时,工作就完成了。

由索引模型根据 Issue 内容生成。

描述

enhancement

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, OpenTelemetry or Serilog reference anywhere
  • LearnStack/Program.cs — default console logging only
Proposed fix
  1. AddHealthChecks().AddDbContextCheck<ApplicationDbContext>() mapped at /healthz, wired to the App Service health probe.
  2. Add Application Insights (or OpenTelemetry exporting to Azure Monitor).
  3. Track: circuit open/close, unhandled component exceptions, OpenGraph fetch failures, login failures, slow queries.
  4. Add a dashboard and an alert on the error rate.
Acceptance criteria
  • /healthz returns 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kasuken/LearnStack 的其他 Issue

查看 kasuken/LearnStack 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。