kasuken / kasuken/LearnStack

[Blocker] Add health checks, telemetry and structured logging

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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, 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.