Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Enables metrics for this server process and registers the server families.

Idempotent: a second call is a no-op. Called once at server startup so the /metrics endpoint has data to render; the recording helpers below stay inert until this runs.