var incomingEvents … var failedEvents … var successfulEventsHandlingSec … func init() { … } func reportRequestReceived(request etcdserverpb.Request) { … } func reportRequestCompleted(request etcdserverpb.Request, startTime time.Time) { … } func reportRequestFailed(request etcdserverpb.Request, err error) { … } func methodFromRequest(request etcdserverpb.Request) string { … } func codeFromError(err error) int { … }