Expand description
Server-side metric recording over the process-global liminal registry.
init installs a global MetricsRegistry — which flips the library’s
metrics gate on for this process — and registers the first-wave server
families, caching their handles. Every recording helper no-ops until init
has run, so a standalone liminal library user (who never calls init) pays
nothing and the registry stays disabled.
Functions§
- connection_
closed - Records the teardown of a supervised connection (
liminal_connections_activegauge decrement). Paired withconnection_spawned. - connection_
spawned - Records the spawn of a supervised connection (
liminal_connections_activegauge increment). Paired withconnection_closedon every teardown route. - deliveries_
recorded - Records
countgenuine subscriber deliveries from a single publish (liminal_deliveries_total). A publish that reached no subscriber records nothing. - init
- Enables metrics for this server process and registers the server families.
- publish_
accepted - Records one accepted publish on the services publish path
(
liminal_publishes_total).