type registerables … // init registers all metrics. func init() { … } var requestTotal … var requestLatency … var metrics … // RecordRequestTotal increments the total number of requests for the delegated authentication. func RecordRequestTotal(ctx context.Context, code string) { … } // RecordRequestLatency measures request latency in seconds for the delegated authentication. Broken down by status code. func RecordRequestLatency(ctx context.Context, code string, latency float64) { … }