code: func recordError(operation string, err error) {
  	if err != nil {
  		metrics.RuntimeOperationsErrors.WithLabelValues(operation).Inc()
  		metrics.DeprecatedRuntimeOperationsErrors.WithLabelValues(operation).Inc()
  	}
  }
docs: // recordError records error for metric if an error occurred.