[Blocker] Add health checks, telemetry and structured logging
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 10
- Forks
- 0
- Avg merge
- 2h 52m
- Merged PRs (30d)
- 20
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading LearnStack/Program.cs to understand the current hosting and logging setup, then locate the database context and App Service configuration. The work is done when /healthz reports database availability, Blazor circuit failures and specified application failures are correlated in telemetry, and the requested error-rate alert and dashboard are configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud, observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100