var registerMetrics … // RegisterMetrics registers authorizer metrics. func RegisterMetrics() { … } var requestTotal … var requestLatency … var _ … type delegatingAuthorizerMetrics … func NewDelegatingAuthorizerMetrics() delegatingAuthorizerMetrics { … } // RecordRequestTotal increments the total number of requests for the delegated authorization. func (delegatingAuthorizerMetrics) RecordRequestTotal(ctx context.Context, code string) { … } // RecordRequestLatency measures request latency in seconds for the delegated authorization. Broken down by status code. func (delegatingAuthorizerMetrics) RecordRequestLatency(ctx context.Context, code string, latency float64) { … }