sigildocs

(sigil http diagnostics)

(sigil http diagnostics) - Server Diagnostics for Long-Running Processes

Provides runtime diagnostics for HTTP servers including:

  • Goroutine (task) count from the async scheduler
  • Open file descriptor count (Linux /proc/self/fd)
  • Memory usage (Linux /proc/self/status VmRSS)
  • SSE broadcast subscriber counts
  • Server uptime

Exposes diagnostics via a /_diagnostics HTTP endpoint and SIGUSR1 signal handler for on-demand stderr dumps.

Exports

diagnosticsprocedure

Construct a diagnostics struct.

diagnostics?procedure

Test if a value is a diagnostics struct.

Get the start-time field of a diagnostics struct.

Get the broadcasts field of a diagnostics struct.

Set the broadcasts field of a diagnostics struct.